private boolean isConnectedTo(RailLogic var1) {
        for (int var2 = 0; var2 < this.connectedTracks.size(); ++var2) {
            ChunkPosition var3 = (ChunkPosition) this.connectedTracks.get(var2);
            if (var3.x == var1.trackX && var3.z == var1.trackZ) {
                return true;
            }
        }

        return false;
    }