mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-2855: Empty ItemStacks in PlayerDeathEvent drops
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ad94b29ad6
commit
3f8ec9a859
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
+ }
|
||||
+ }
|
||||
|
|
Loading…
Reference in a new issue