mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 19:28:03 +01:00
PlayerDeathEvent#shouldDropExperience
This commit is contained in:
parent
cd2f06bbc2
commit
0664232c53
1 changed files with 1 additions and 1 deletions
|
@ -615,7 +615,7 @@
|
|||
- if (!this.isSpectator()) {
|
||||
- this.dropAllDeathLoot(this.serverLevel(), damageSource);
|
||||
+ // SPIGOT-5478 must be called manually now
|
||||
+ this.dropExperience(this.serverLevel(), damageSource.getEntity());
|
||||
+ if (event.shouldDropExperience()) this.dropExperience(this.serverLevel(), damageSource.getEntity()); // Paper - tie to event
|
||||
+ // we clean the player's inventory after the EntityDeathEvent is called so plugins can get the exact state of the inventory.
|
||||
+ if (!event.getKeepInventory()) {
|
||||
+ // Paper start - PlayerDeathEvent#getItemsToKeep
|
||||
|
|
Loading…
Add table
Reference in a new issue