From 9bd02495dfbd1d5cff9487c3b116ff0ef75c229d Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Fri, 30 Nov 2012 11:49:01 -0600 Subject: [PATCH] Use carried item for endermen's changed-block's id. Fixes BUKKIT-3075 --- src/main/java/net/minecraft/server/EntityEnderman.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityEnderman.java b/src/main/java/net/minecraft/server/EntityEnderman.java index dc0e7a6f8a..db88142f4c 100644 --- a/src/main/java/net/minecraft/server/EntityEnderman.java +++ b/src/main/java/net/minecraft/server/EntityEnderman.java @@ -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); }