From ff0da6bad5a10fa3752fc9fe1fca3e781d17ab3b Mon Sep 17 00:00:00 2001 From: AlphaBlend Date: Thu, 5 Dec 2013 07:47:28 -0800 Subject: [PATCH] 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. --- src/main/java/net/minecraft/server/World.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java index 0194e74d52..f60368bf31 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()) {