public void spawnTeleporter() { // there were no towers in range ever, so lets just build a new one: towerSpawnLocation = spawning.getTowerSpawnLocation(); if (towerSpawnLocation == null) { pa("WTF. There is nowhere to spawn the tower."); return; } towerSpawnFromLocation = towerSpawnLocation.subtract(controller.getLocation().directionTo(towerSpawnLocation)); navigation.changeToLocationGoal(towerSpawnFromLocation, true); controller.setIndicatorString(2, towerSpawnFromLocation.toString()); setGoal(Goal.placingTeleporter); }