fix offhand duplication

This commit is contained in:
hyperdefined
2025-02-10 09:43:42 -05:00
parent 434f0dfe30
commit 9f5da738dd
3 changed files with 3 additions and 6 deletions

View File

@@ -72,8 +72,7 @@ public class SheepShear implements Listener {
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.SHEARS;
if (isMain) {
inventory.getItemInMainHand().setItemMeta(newItem);
}
if (isOffHand) {
} else if (isOffHand) {
inventory.getItemInOffHand().setItemMeta(newItem);
}
}