diff --git a/paper-server/nms-patches/net/minecraft/server/level/EntityPlayer.patch b/paper-server/nms-patches/net/minecraft/server/level/EntityPlayer.patch index 855ca200db..3e16cfdc1f 100644 --- a/paper-server/nms-patches/net/minecraft/server/level/EntityPlayer.patch +++ b/paper-server/nms-patches/net/minecraft/server/level/EntityPlayer.patch @@ -338,7 +338,7 @@ - IChatBaseComponent ichatbasecomponent = this.getCombatTracker().getDeathMessage(); + if (!keepInventory) { + for (ItemStack item : this.getInventory().getContents()) { -+ if (!item.isEmpty() && EnchantmentManager.has(item, EnchantmentEffectComponents.PREVENT_EQUIPMENT_DROP)) { ++ if (!item.isEmpty() && !EnchantmentManager.has(item, EnchantmentEffectComponents.PREVENT_EQUIPMENT_DROP)) { + loot.add(CraftItemStack.asCraftMirror(item)); + } + }