From 2ba48b4965389ded9f4883bcb1da021710f0feb7 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 28 Nov 2016 12:34:21 +1100 Subject: [PATCH] SPIGOT-2855: Empty ItemStacks in PlayerDeathEvent drops --- nms-patches/EntityPlayer.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch index 0ec9bbfa6..992541a61 100644 --- a/nms-patches/EntityPlayer.patch +++ b/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)); + } + }