Use carried item for endermen's changed-block's id. Fixes BUKKIT-3075

This commit is contained in:
Wesley Wolfe 2012-11-30 11:49:01 -06:00
parent 0c16afd6e0
commit 9bd02495df

View file

@ -122,7 +122,7 @@ public class EntityEnderman extends EntityMonster {
// CraftBukkit start - place event
org.bukkit.block.Block bblock = this.world.getWorld().getBlockAt(i, j, k);
if (!CraftEventFactory.callEntityChangeBlockEvent(this, bblock, bblock.getType()).isCancelled()) {
if (!CraftEventFactory.callEntityChangeBlockEvent(this, bblock, this.getCarriedId()).isCancelled()) {
this.world.setTypeIdAndData(i, j, k, this.getCarriedId(), this.getCarriedData());
this.setCarriedId(0);
}