Skip to content

Commit 47c4694

Browse files
committed
fixxed issue in anvil dupe where location vector was not copied correctly resulting in the dupe not working
1 parent 68cf769 commit 47c4694

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ shadowJar {
2626
}
2727

2828
group = 'online.umbcraft.libraries'
29-
version = '1.5.2'
29+
version = '1.5.3'
3030
description = 'Golden Dupes - dupes from the Golden days of minecraft!'
3131
sourceCompatibility = '17'
3232
targetCompatibility = '17'

src/main/java/online/umbcraft/libraries/dupes/AnvilDupe.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
import java.util.*;
2121

22-
import static online.umbcraft.libraries.config.ConfigPath.*;
23-
2422
public class AnvilDupe extends Dupe implements Listener {
2523

2624
final private Set<Location> anvilsInUse = new HashSet<>();
@@ -45,7 +43,7 @@ public void onAnvilUse(final InventoryClickEvent e) {
4543
return;
4644

4745
Location l = e.getClickedInventory().getLocation();
48-
Location blockBelow = l.add(new Vector(0,-1,0));
46+
Location blockBelow = l.clone().add(new Vector(0,-1,0));
4947
ItemStack toDupe = e.getCurrentItem();
5048
Player p = (Player) e.getWhoClicked();
5149

0 commit comments

Comments
 (0)