mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Filter null/AIR from items dropped on death. Fixes: BUKKIT-653
This commit is contained in:
parent
4c2f57592d
commit
3173b68bbe
1 changed files with 2 additions and 0 deletions
|
@ -377,6 +377,8 @@ public class CraftEventFactory {
|
|||
victim.newExp = event.getNewExp();
|
||||
|
||||
for (org.bukkit.inventory.ItemStack stack : event.getDrops()) {
|
||||
if (stack == null || stack.getType() == Material.AIR) continue;
|
||||
|
||||
world.dropItemNaturally(entity.getLocation(), stack);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue