1.9.2-hotfix

This commit is contained in:
hyperdefined
2025-02-11 15:57:49 -05:00
parent 5e3e9f0825
commit eeb6038b66
5 changed files with 27 additions and 12 deletions

View File

@@ -72,7 +72,9 @@ public class PlayerFish implements Listener {
PlayerInventory inventory = player.getInventory();
boolean isMain = inventory.getItemInMainHand().getType() == Material.FISHING_ROD;
boolean isOffHand = inventory.getItemInOffHand().getType() == Material.FISHING_ROD;
if (isMain) {
if (isMain && isOffHand) {
inventory.getItemInMainHand().setItemMeta(newFishingRod);
} else if (isMain) {
inventory.getItemInMainHand().setItemMeta(newFishingRod);
} else if (isOffHand) {
inventory.getItemInOffHand().setItemMeta(newFishingRod);