Skip to content

Commit

Permalink
fixxed issue in anvil dupe where location vector was not copied corre…
Browse files Browse the repository at this point in the history
…ctly resulting in the dupe not working
  • Loading branch information
Ivan8or committed Dec 23, 2023
1 parent 68cf769 commit 47c4694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ shadowJar {
}

group = 'online.umbcraft.libraries'
version = '1.5.2'
version = '1.5.3'
description = 'Golden Dupes - dupes from the Golden days of minecraft!'
sourceCompatibility = '17'
targetCompatibility = '17'
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/online/umbcraft/libraries/dupes/AnvilDupe.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@

import java.util.*;

import static online.umbcraft.libraries.config.ConfigPath.*;

public class AnvilDupe extends Dupe implements Listener {

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

Location l = e.getClickedInventory().getLocation();
Location blockBelow = l.add(new Vector(0,-1,0));
Location blockBelow = l.clone().add(new Vector(0,-1,0));
ItemStack toDupe = e.getCurrentItem();
Player p = (Player) e.getWhoClicked();

Expand Down

0 comments on commit 47c4694

Please sign in to comment.