Archiviert
13
0

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.
Dieser Commit ist enthalten in:
AlphaBlend 2013-12-05 07:47:28 -08:00 committet von Nate Mortensen
Ursprung 6f4d9bea2b
Commit ff0da6bad5

Datei anzeigen

@ -468,7 +468,7 @@ public abstract class World implements IBlockAccess {
// CraftBukkit start // CraftBukkit start
CraftWorld world = ((WorldServer) this).getWorld(); CraftWorld world = ((WorldServer) this).getWorld();
if (world != null) { 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); this.getServer().getPluginManager().callEvent(event);
if (event.isCancelled()) { if (event.isCancelled()) {