SPIGOT-7650: Add DamageSource for EntityDeathEvent and PlayerDeathEvent

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot
2024-05-04 08:16:00 +10:00
parent 066665a979
commit f91094ddfd
4 changed files with 44 additions and 13 deletions

View File

@@ -596,7 +596,7 @@
this.dropCustomDeathLoot(damagesource, i, flag);
}
+ // CraftBukkit start - Call death event
+ CraftEventFactory.callEntityDeathEvent(this, this.drops);
+ CraftEventFactory.callEntityDeathEvent(this, damagesource, this.drops);
+ this.drops = new ArrayList<>();
+ // CraftBukkit end