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:
Ursprung
c1462a24d8
Commit
83fd16e453
@ -465,7 +465,7 @@ public class CraftBlock implements Block {
|
|||||||
int count = block.getDropCount(0, chunk.getHandle().getWorld().random);
|
int count = block.getDropCount(0, chunk.getHandle().getWorld().random);
|
||||||
for (int i = 0; i < count; ++i) {
|
for (int i = 0; i < count; ++i) {
|
||||||
Item item = block.getDropType(data, chunk.getHandle().getWorld().random, 0);
|
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
|
// Skulls are special, their data is based on the tile entity
|
||||||
if (Blocks.SKULL == block) {
|
if (Blocks.SKULL == block) {
|
||||||
net.minecraft.server.ItemStack nmsStack = new net.minecraft.server.ItemStack(item, 1, block.getDropData(data));
|
net.minecraft.server.ItemStack nmsStack = new net.minecraft.server.ItemStack(item, 1, block.getDropData(data));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren