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.
This commit is contained in:
AlphaBlend authored and Nate Mortensen committed 2013-12-07 21:34:50 -07:00
1 parent 6f4d9bea2b
commit ff0da6bad5
1 file changed
+1 -1
@@ -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()) {