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:
Ursprung
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() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren