Bunchafixes which may or may not have any end result

This commit is contained in:
Dinnerbone
2011-09-16 20:10:11 +01:00
parent 94d1338feb
commit 900c541246
9 changed files with 69 additions and 88 deletions

View File

@@ -384,8 +384,7 @@ public class EntityWolf extends EntityAnimal {
if (itemfood.m() && this.datawatcher.b(18) < 20) {
--itemstack.count;
this.c(((ItemFood) Item.PORK).k(), RegainReason.EATING); // Craftbukkit
this.c(itemfood.k(), RegainReason.EATING); // Craftbukkit
if (itemstack.count <= 0) {
entityhuman.inventory.setItem(entityhuman.inventory.itemInHandIndex, (ItemStack) null);
}