From 83fd16e453f855580402194c75cd5c7a6b78827e Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 23 Nov 2016 22:02:36 +1100 Subject: SPIGOT-2835: CraftBlock getDrops Returns Air --- src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org/bukkit') diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java index 0374578f..a816ec7c 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java @@ -465,7 +465,7 @@ public class CraftBlock implements Block { int count = block.getDropCount(0, chunk.getHandle().getWorld().random); for (int i = 0; i < count; ++i) { Item item = block.getDropType(data, chunk.getHandle().getWorld().random, 0); - if (item != null) { + if (item != Items.a) { // Skulls are special, their data is based on the tile entity if (Blocks.SKULL == block) { net.minecraft.server.ItemStack nmsStack = new net.minecraft.server.ItemStack(item, 1, block.getDropData(data)); -- cgit v1.2.3