3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 12:30:06 +01:00

SPIGOT-2835: CraftBlock getDrops Returns Air

Dieser Commit ist enthalten in:
md_5 2016-11-23 22:02:36 +11:00
Ursprung c1462a24d8
Commit 83fd16e453

Datei anzeigen

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