int cz = data.getInteger("controllerZ");
cPos = new WorldCoordinate(cDim, cx, cy, cz);
}
if (tile instanceof IReceiverTile && cPos != null) {
if (Game.isHost(world)) {
SignalReceiver receiver = ((IReceiverTile) tile).getReceiver();
if (i != cPos.x || j != cPos.y || k != cPos.z) {
tile = world.getTileEntity(cPos.x, cPos.y, cPos.z);
if (tile != null && tile instanceof IControllerTile) {
SignalController controller = ((IControllerTile) tile).getController();
if (receiver.getTile() != controller.getTile()) {
controller.registerReceiver(receiver);
controller.endPairing();
ChatPlugin.sendLocalizedChat(player, "railcraft.gui.tuner.success", controller.getName(), receiver.getName());
item.setTagCompound(null);
return true;
}
} else if (world.blockExists(cPos.x, cPos.y, cPos.z)) {
ChatPlugin.sendLocalizedChat(player, "railcraft.gui.tuner.abandon.gone");