Commits
Parker Hawke authored and md_5 committed 9a21b0b89eb
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 + | |
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 + | } |