From 6f40a22e164b7f3ec50aa78fa19d1bbcfc508282 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Fri, 9 Mar 2012 22:45:26 -0500 Subject: [PATCH] Made feeding wolves fire EntityRegainHealth events. Fixes BUKKIT-1111 --- src/main/java/net/minecraft/server/EntityWolf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityWolf.java b/src/main/java/net/minecraft/server/EntityWolf.java index 5003668d03..87467c5c73 100644 --- a/src/main/java/net/minecraft/server/EntityWolf.java +++ b/src/main/java/net/minecraft/server/EntityWolf.java @@ -210,7 +210,7 @@ public class EntityWolf extends EntityTameableAnimal { if (itemfood.q() && this.datawatcher.getInt(18) < 20) { --itemstack.count; - this.heal(itemfood.getNutrition()); + this.heal(itemfood.getNutrition(), org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.EATING); // CraftBukkit if (itemstack.count <= 0) { entityhuman.inventory.setItem(entityhuman.inventory.itemInHandIndex, (ItemStack) null); }