mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix the previous fix for "infinite 'breeding' with MonsterEggs"
This commit is contained in:
1 parent
22e26a5029
commit
cd66edd40f
1 file changed
+4
@@ -26,6 +26,10 @@ public abstract class EntityAgeable extends EntityCreature {
|
||||
// CraftBukkit start
|
||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||
itemstack.count--;
|
||||
|
||||
if (itemstack.count == 0) {
|
||||
entityhuman.inventory.setItem(entityhuman.inventory.itemInHandIndex, null);
|
||||
}
|
||||
}
|
||||
// CraftBukkit end
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user