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

@@ -63,8 +63,7 @@ public class ShootBow implements Listener {
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.BOW || inventory.getItemInOffHand().getType() == Material.CROSSBOW;
if (isMain) {
inventory.getItemInMainHand().setItemMeta(newItem);
}
if (isOffHand) {
} else if (isOffHand) {
inventory.getItemInOffHand().setItemMeta(newItem);
}
}