diff options
author | EvilSeph <evilseph@gmail.com> | 2012-03-09 22:45:26 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-09 22:45:26 -0500 |
commit | 6f40a22e164b7f3ec50aa78fa19d1bbcfc508282 (patch) | |
tree | c519e458a49b7af0cc8f78ad9c000cb7f3bcdbb6 /src/main/java/net/minecraft/server/EntityWolf.java | |
parent | fce3386aa072eeb52c335208959ce445c4aeb543 (diff) | |
download | craftbukkit-6f40a22e164b7f3ec50aa78fa19d1bbcfc508282.tar craftbukkit-6f40a22e164b7f3ec50aa78fa19d1bbcfc508282.tar.gz craftbukkit-6f40a22e164b7f3ec50aa78fa19d1bbcfc508282.tar.lz craftbukkit-6f40a22e164b7f3ec50aa78fa19d1bbcfc508282.tar.xz craftbukkit-6f40a22e164b7f3ec50aa78fa19d1bbcfc508282.zip |
Made feeding wolves fire EntityRegainHealth events. Fixes BUKKIT-1111
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityWolf.java')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityWolf.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityWolf.java b/src/main/java/net/minecraft/server/EntityWolf.java index 5003668d..87467c5c 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); } |