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

@@ -74,8 +74,7 @@ public class PlayerFish implements Listener {
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.FISHING_ROD;
if (isMain) {
inventory.getItemInMainHand().setItemMeta(newFishingRod);
}
if (isOffHand) {
} else if (isOffHand) {
inventory.getItemInOffHand().setItemMeta(newFishingRod);
}
}