SPIGOT-2855: Empty ItemStacks in PlayerDeathEvent drops

This commit is contained in:
md_5 2016-11-28 12:34:21 +11:00
parent c91ca4a541
commit 2ba48b4965

View File

@ -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));
+ }
+ }