3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-17 05:20:05 +01:00

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

Related to BUKKIT-129
Dieser Commit ist enthalten in:
Andrew Ardill 2011-12-02 21:31:31 +11:00
Ursprung c298c104ea
Commit 480376ef50

Datei anzeigen

@ -624,10 +624,10 @@ public abstract class EntityLiving extends Entity {
if (k > 0) { if (k > 0) {
loot.add(new org.bukkit.inventory.ItemStack(j, k)); 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() { protected int e() {