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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user