Call entity_die game event after event cancel check (#10096)

This commit is contained in:
Jake Potrebic
2023-12-29 11:57:32 -08:00
parent c4e0d81696
commit e1faa8e814
2 changed files with 11 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
@Override
public void die(DamageSource damageSource) {
this.gameEvent(GameEvent.ENTITY_DIE);
// this.gameEvent(GameEvent.ENTITY_DIE); // Paper - move below event cancellation check
@@ -0,0 +0,0 @@ public class ServerPlayer extends Player {
this.dropExperience();
// we clean the player's inventory after the EntityDeathEvent is called so plugins can get the exact state of the inventory.