diff options
author | AlphaBlend <whizkid3000@hotmail.com> | 2013-12-05 07:47:28 -0800 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2013-12-07 21:34:50 -0700 |
commit | ff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b (patch) | |
tree | c52e7517ac249c623d84073a682b4d01e5f0df6c | |
parent | 6f4d9bea2b4975a15d6b11f0a5c603b0c953f349 (diff) | |
download | craftbukkit-ff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b.tar craftbukkit-ff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b.tar.gz craftbukkit-ff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b.tar.lz craftbukkit-ff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b.tar.xz craftbukkit-ff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b.zip |
Fix BlockPhysicsEvent having incorrect changed type. Fixes BUKKIT-5063
This change updates the reference to the local variable representing the
block being checked when calling BlockPhysicsEvent.
-rw-r--r-- | src/main/java/net/minecraft/server/World.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 0194e74d..f60368bf 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -468,7 +468,7 @@ public abstract class World implements IBlockAccess { // CraftBukkit start CraftWorld world = ((WorldServer) this).getWorld(); if (world != null) { - BlockPhysicsEvent event = new BlockPhysicsEvent(world.getBlockAt(i, j, k), l); + BlockPhysicsEvent event = new BlockPhysicsEvent(world.getBlockAt(i, j, k), CraftMagicNumbers.getId(block)); this.getServer().getPluginManager().callEvent(event); if (event.isCancelled()) { |