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()) {
|
- if (!this.isSpectator()) {
|
||||||
- this.dropAllDeathLoot(this.serverLevel(), damageSource);
|
- this.dropAllDeathLoot(this.serverLevel(), damageSource);
|
||||||
+ // SPIGOT-5478 must be called manually now
|
+ // 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.
|
+ // we clean the player's inventory after the EntityDeathEvent is called so plugins can get the exact state of the inventory.
|
||||||
+ if (!event.getKeepInventory()) {
|
+ if (!event.getKeepInventory()) {
|
||||||
+ // Paper start - PlayerDeathEvent#getItemsToKeep
|
+ // Paper start - PlayerDeathEvent#getItemsToKeep
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue