diff options
Diffstat (limited to 'src')
-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 } |