From c0bdb1be743baf6de967491f91819ebce813f950 Mon Sep 17 00:00:00 2001 From: JustRed23 Date: Wed, 21 Aug 2024 12:56:37 +0200 Subject: [PATCH] reset bukkit keepinv before handling player death --- .../net/minecraft/world/entity/LivingEntity.java.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch b/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch index af8e80512..e40f6cd38 100644 --- a/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch +++ b/patches/minecraft/net/minecraft/world/entity/LivingEntity.java.patch @@ -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(); @@ -753,6 +753,7 @@ + Collection drops = captureDrops(null); + + //Ketting start ++ handlePlayerDeath$cbKeepInv = false; //reset + if (this instanceof ServerPlayer s) { + dropAllDeathLoot$dropsCopy = new java.util.ArrayList(drops); //Ketting + handlePlayerDeath(s, drops);