summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-11-23 22:02:36 +1100
committermd_5 <git@md-5.net>2016-11-23 22:02:36 +1100
commit83fd16e453f855580402194c75cd5c7a6b78827e (patch)
tree5dba4d501c9cacd50597a46c783c7becc46657e9
parentc1462a24d83ef50e4cfd81948fd8868f00aaaccd (diff)
downloadcraftbukkit-83fd16e453f855580402194c75cd5c7a6b78827e.tar
craftbukkit-83fd16e453f855580402194c75cd5c7a6b78827e.tar.gz
craftbukkit-83fd16e453f855580402194c75cd5c7a6b78827e.tar.lz
craftbukkit-83fd16e453f855580402194c75cd5c7a6b78827e.tar.xz
craftbukkit-83fd16e453f855580402194c75cd5c7a6b78827e.zip
SPIGOT-2835: CraftBlock getDrops Returns Air
-rw-r--r--src/main/java/org/bukkit/craftbukkit/block/CraftBlock.java2
1 files changed, 1 insertions, 1 deletions
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));