mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-20 07:29:21 +00:00
Fixed consuming 2 eggs instead of 1
This commit is contained in:
@@ -134,8 +134,6 @@ public class SpawnListeners extends PluginDependent<EcoPlugin> implements Listen
|
||||
return;
|
||||
}
|
||||
|
||||
item.setAmount(item.getAmount() - 1);
|
||||
|
||||
if (event.getHand() == EquipmentSlot.HAND) {
|
||||
ItemStack hand = event.getPlayer().getInventory().getItemInMainHand();
|
||||
hand.setAmount(hand.getAmount() - 1);
|
||||
|
||||
Reference in New Issue
Block a user