13
0
geforkt von Mirrors/Paper

Fix the previous fix for "infinite 'breeding' with MonsterEggs"

Dieser Commit ist enthalten in:
feildmaster 2012-11-22 21:42:34 -06:00
Ursprung 22e26a5029
Commit cd66edd40f

Datei anzeigen

@ -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
} }