Filter null/AIR from items dropped on death. Fixes: BUKKIT-653
Dieser Commit ist enthalten in:
Ursprung
4c2f57592d
Commit
3173b68bbe
@ -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);
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren