SPIGOT-2855: Empty ItemStacks in PlayerDeathEvent drops
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -182,7 +182,7 @@
|
|||||||
+
|
+
|
||||||
+ if (!keepInventory) {
|
+ if (!keepInventory) {
|
||||||
+ for (ItemStack item : this.inventory.getContents()) {
|
+ 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));
|
+ loot.add(CraftItemStack.asCraftMirror(item));
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
|||||||
Reference in New Issue
Block a user