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

Related to BUKKIT-129
This commit is contained in:
Andrew Ardill 2011-12-02 21:31:31 +11:00
parent c298c104ea
commit 480376ef50

View File

@ -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() {