diff options
author | Aidan Matzko <amatzko48@gmail.com> | 2012-02-04 12:51:40 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-02-10 21:29:21 -0500 |
commit | 9b10970f6b42fdc38409c31a9010653c18838678 (patch) | |
tree | d01834d9841bc6f122d57247fffcf468368ba9f3 /src | |
parent | da1aead88a99412cc5f85b8a5c1f0ae051084b08 (diff) | |
download | craftbukkit-9b10970f6b42fdc38409c31a9010653c18838678.tar craftbukkit-9b10970f6b42fdc38409c31a9010653c18838678.tar.gz craftbukkit-9b10970f6b42fdc38409c31a9010653c18838678.tar.lz craftbukkit-9b10970f6b42fdc38409c31a9010653c18838678.tar.xz craftbukkit-9b10970f6b42fdc38409c31a9010653c18838678.zip |
[Bleeding] Fixed EntityChangeBlock event reporting incorrect information
for Enderman block placing.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityEnderman.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityEnderman.java b/src/main/java/net/minecraft/server/EntityEnderman.java index 66d8de44..6416d889 100644 --- a/src/main/java/net/minecraft/server/EntityEnderman.java +++ b/src/main/java/net/minecraft/server/EntityEnderman.java @@ -137,7 +137,9 @@ public class EntityEnderman extends EntityMonster { EndermanPlaceEvent place = new EndermanPlaceEvent(this.getBukkitEntity(), new Location(this.world.getWorld(), i, j, k)); this.world.getServer().getPluginManager().callEvent(place); - EntityChangeBlockEvent event = new EntityChangeBlockEvent(this.getBukkitEntity(), this.world.getWorld().getBlockAt(i, j, k), org.bukkit.Material.AIR); + org.bukkit.block.Block bblock = this.world.getWorld().getBlockAt(i, j, k); + + EntityChangeBlockEvent event = new EntityChangeBlockEvent(this.getBukkitEntity(), bblock, bblock.getType()); this.world.getServer().getPluginManager().callEvent(event); if (!place.isCancelled() && !event.isCancelled()) { |