mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
SPIGOT-2855: Empty ItemStacks in PlayerDeathEvent drops
This commit is contained in:
parent
c91ca4a541
commit
2ba48b4965
@ -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));
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user