From 3f8ec9a85964044dae6585970d84f64f9bb33f68 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 28 Nov 2016 12:34:21 +1100 Subject: [PATCH] SPIGOT-2855: Empty ItemStacks in PlayerDeathEvent drops By: md_5 --- paper-server/nms-patches/EntityPlayer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/EntityPlayer.patch b/paper-server/nms-patches/EntityPlayer.patch index 0ec9bbfa6..992541a61 100644 --- a/paper-server/nms-patches/EntityPlayer.patch +++ b/paper-server/nms-patches/EntityPlayer.patch @@ -182,7 +182,7 @@ + + if (!keepInventory) { + for (ItemStack item : this.inventory.getContents()) { -+ if (!EnchantmentManager.c(item)) { // PAIL: shouldNotDrop (Vanishing enchant) ++ if (!item.isEmpty() && !EnchantmentManager.c(item)) { // PAIL: shouldNotDrop (Vanishing enchant) + loot.add(CraftItemStack.asCraftMirror(item)); + } + }