Commits

Parker Hawke authored and md_5 committed 9a21b0b89eb
SPIGOT-7393: Fix new tile entities not loading Bukkit's PersistentDataContainer
No tags

nms-patches/net/minecraft/world/level/block/entity/BrushableBlockEntity.patch

Modified
18 18
19 19 entityitem.setDeltaMovement(Vec3D.ZERO);
20 20 - this.level.addFreshEntity(entityitem);
21 21 + // CraftBukkit start
22 22 + org.bukkit.block.Block bblock = CraftBlock.at(this.level, this.worldPosition);
23 23 + CraftEventFactory.handleBlockDropItemEvent(bblock, bblock.getState(), (EntityPlayer) entityhuman, Arrays.asList(entityitem));
24 24 + // CraftBukkit end
25 25 this.item = ItemStack.EMPTY;
26 26 }
27 27
28 +@@ -230,6 +239,7 @@
29 +
30 + @Override
31 + public void load(NBTTagCompound nbttagcompound) {
32 ++ super.load(nbttagcompound); // CraftBukkit - SPIGOT-7393: Load super Bukkit data
33 + if (!this.tryLoadLootTable(nbttagcompound) && nbttagcompound.contains("item")) {
34 + this.item = ItemStack.of(nbttagcompound.getCompound("item"));
35 + }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut