mirror of
https://github.com/hyperdefined/ToolStats.git
synced 2025-12-28 03:55:58 +00:00
fix offhand duplication
This commit is contained in:
@@ -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