From 480376ef500a316e3d01ae554a3d071cc654d316 Mon Sep 17 00:00:00 2001 From: Andrew Ardill Date: Fri, 2 Dec 2011 21:31:31 +1100 Subject: [PATCH] Ensure that DeathEvents are raised even for non loot-dropping living entities Related to BUKKIT-129 --- src/main/java/net/minecraft/server/EntityLiving.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java index 3f06cd568c..aa11ced144 100644 --- a/src/main/java/net/minecraft/server/EntityLiving.java +++ b/src/main/java/net/minecraft/server/EntityLiving.java @@ -624,10 +624,10 @@ public abstract class EntityLiving extends Entity { if (k > 0) { loot.add(new org.bukkit.inventory.ItemStack(j, k)); } - - CraftEventFactory.callEntityDeathEvent(this, loot); - // CraftBukkit end } + + CraftEventFactory.callEntityDeathEvent(this, loot); // raise event even for those times when the entity does not drop loot + // CraftBukkit end } protected int e() {