Skip to content

Commit

Permalink
reset bukkit keepinv before handling player death
Browse files Browse the repository at this point in the history
  • Loading branch information
JustRed23 committed Aug 21, 2024
1 parent c2721e6 commit c0bdb1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@

boolean flag = this.lastHurtByPlayerTime > 0;
if (this.shouldDropLoot() && this.level().getGameRules().getBoolean(GameRules.RULE_DOMOBLOOT)) {
@@ -1349,15 +_,76 @@
@@ -1349,15 +_,77 @@
}

this.dropEquipment();
Expand All @@ -753,6 +753,7 @@
+ Collection<ItemEntity> drops = captureDrops(null);
+
+ //Ketting start
+ handlePlayerDeath$cbKeepInv = false; //reset
+ if (this instanceof ServerPlayer s) {
+ dropAllDeathLoot$dropsCopy = new java.util.ArrayList<ItemEntity>(drops); //Ketting
+ handlePlayerDeath(s, drops);
Expand Down

0 comments on commit c0bdb1b

Please sign in to comment.