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

Dieser Commit ist enthalten in:
Wesley Wolfe 2012-11-30 11:49:01 -06:00
Ursprung 0c16afd6e0
Commit 9bd02495df

Datei anzeigen

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