From cd66edd40f0895c26b2526b507988f27848fc3f3 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Thu, 22 Nov 2012 21:42:34 -0600 Subject: [PATCH] Fix the previous fix for "infinite 'breeding' with MonsterEggs" --- src/main/java/net/minecraft/server/EntityAgeable.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/minecraft/server/EntityAgeable.java b/src/main/java/net/minecraft/server/EntityAgeable.java index 9ae7f7f358..aecf24587f 100644 --- a/src/main/java/net/minecraft/server/EntityAgeable.java +++ b/src/main/java/net/minecraft/server/EntityAgeable.java @@ -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 }