mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
Fix the previous fix for "infinite 'breeding' with MonsterEggs"
This commit is contained in:
parent
22e26a5029
commit
cd66edd40f
1 changed files with 4 additions and 0 deletions
|
@ -26,6 +26,10 @@ public abstract class EntityAgeable extends EntityCreature {
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
if (!entityhuman.abilities.canInstantlyBuild) {
|
if (!entityhuman.abilities.canInstantlyBuild) {
|
||||||
itemstack.count--;
|
itemstack.count--;
|
||||||
|
|
||||||
|
if (itemstack.count == 0) {
|
||||||
|
entityhuman.inventory.setItem(entityhuman.inventory.itemInHandIndex, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue