Ensure that DeathEvents are raised even for non loot-dropping living entities

Related to BUKKIT-129
This commit is contained in:
Andrew Ardill committed 2011-12-02 21:38:51 +11:00
1 parent c298c104ea
commit 480376ef50
1 file changed
+3 -3
@@ -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() {