mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-06 06:41:44 +00:00
fix offhand duplication
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user