if (tile instanceof ISignalBlockTile) {
// System.out.println("target found");
if (Game.isHost(world)) {
ISignalBlockTile signalTile = (ISignalBlockTile) tile;
SignalBlock signalBlock = signalTile.getSignalBlock();
WorldCoordinate pos = null;
NBTTagCompound data = item.getTagCompound();
if (data != null) {
int sDim = data.getInteger("signalDim");
int sx = data.getInteger("signalX");
int sy = data.getInteger("signalY");
int sz = data.getInteger("signalZ");
pos = new WorldCoordinate(sDim, sx, sy, sz);
}
WorldCoordinate track = signalBlock.getTrackLocation();
if (track == null)
ChatPlugin.sendLocalizedChat(player, "railcraft.gui.surveyor.track", signalTile.getName());
else if (pos == null) {
ChatPlugin.sendLocalizedChat(player, "railcraft.gui.surveyor.begin");
setSignalData(item, tile);