diff options
author | feildmaster <admin@feildmaster.com> | 2012-11-22 21:42:34 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-11-22 21:42:34 -0600 |
commit | cd66edd40f0895c26b2526b507988f27848fc3f3 (patch) | |
tree | 7b8258db804ad535d12a5060b863e223a56f9c54 | |
parent | 22e26a5029e9bd55f370707fa5e0a8f47771ae83 (diff) | |
download | craftbukkit-cd66edd40f0895c26b2526b507988f27848fc3f3.tar craftbukkit-cd66edd40f0895c26b2526b507988f27848fc3f3.tar.gz craftbukkit-cd66edd40f0895c26b2526b507988f27848fc3f3.tar.lz craftbukkit-cd66edd40f0895c26b2526b507988f27848fc3f3.tar.xz craftbukkit-cd66edd40f0895c26b2526b507988f27848fc3f3.zip |
Fix the previous fix for "infinite 'breeding' with MonsterEggs"
-rw-r--r-- | src/main/java/net/minecraft/server/EntityAgeable.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityAgeable.java b/src/main/java/net/minecraft/server/EntityAgeable.java index 9ae7f7f3..aecf2458 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 } |