Fix coordinates on SIGN_CHANGE

This commit is contained in:
Erik Broes 2011-04-01 09:10:29 +02:00
parent a3a1436df5
commit 7eeb0d8f4a

View File

@ -813,7 +813,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
// CraftBukkit start - SIGN_CHANGE hook
Player player = server.getPlayer(this.e);
SignChangeEvent event = new SignChangeEvent((CraftBlock) player.getWorld().getBlockAt(j, k, j), server.getPlayer(this.e), packet130updatesign.d);
SignChangeEvent event = new SignChangeEvent((CraftBlock) player.getWorld().getBlockAt(j, k, i), server.getPlayer(this.e), packet130updatesign.d);
server.getPluginManager().callEvent(event);
if (event.isCancelled()) {
@ -832,7 +832,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
tileentitysign1.i();
// CraftBukkit
this.e.world.g(j, k, j);
this.e.world.g(j, k, i);
}
}
}