9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-20 15:39:31 +00:00

Fixed consuming 2 eggs instead of 1

This commit is contained in:
_OfTeN_
2021-11-27 13:45:57 +03:00
parent 97a07f31bf
commit b13bcdd14c

View File

@@ -134,8 +134,6 @@ public class SpawnListeners extends PluginDependent<EcoPlugin> implements Listen
return; return;
} }
item.setAmount(item.getAmount() - 1);
if (event.getHand() == EquipmentSlot.HAND) { if (event.getHand() == EquipmentSlot.HAND) {
ItemStack hand = event.getPlayer().getInventory().getItemInMainHand(); ItemStack hand = event.getPlayer().getInventory().getItemInMainHand();
hand.setAmount(hand.getAmount() - 1); hand.setAmount(hand.getAmount() - 1);