mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +01:00
Ensure that DeathEvents are raised even for non loot-dropping living entities
Related to BUKKIT-129
This commit is contained in:
parent
c298c104ea
commit
480376ef50
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user