3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 13:30:05 +01:00

Filter null/AIR from items dropped on death. Fixes: BUKKIT-653

Dieser Commit ist enthalten in:
Erik Broes 2012-01-29 13:37:32 +01:00
Ursprung 4c2f57592d
Commit 3173b68bbe

Datei anzeigen

@ -377,6 +377,8 @@ public class CraftEventFactory {
victim.newExp = event.getNewExp(); victim.newExp = event.getNewExp();
for (org.bukkit.inventory.ItemStack stack : event.getDrops()) { for (org.bukkit.inventory.ItemStack stack : event.getDrops()) {
if (stack == null || stack.getType() == Material.AIR) continue;
world.dropItemNaturally(entity.getLocation(), stack); world.dropItemNaturally(entity.getLocation(), stack);
} }