SPIGOT-2835: CraftBlock getDrops Returns Air

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-11-23 22:02:36 +11:00
parent c85a3c331b
commit 2f768a3cfb

View File

@ -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));