3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Made feeding wolves fire EntityRegainHealth events. Fixes BUKKIT-1111

Dieser Commit ist enthalten in:
EvilSeph 2012-03-09 22:45:26 -05:00
Ursprung fce3386aa0
Commit 6f40a22e16

Datei anzeigen

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