mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:41:29 +01:00
SPIGOT-2835: CraftBlock getDrops Returns Air
By: md_5 <git@md-5.net>
This commit is contained in:
parent
c85a3c331b
commit
2f768a3cfb
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user