public void Teleport(Player player, Teleporter playerStandsOn) { if (playerStandsOn.HasDestination()) { int[] destination = GetTileToCoordinates(playerStandsOn.GetDestination().x, playerStandsOn.GetDestination().y); player.SetPos(destination[0], destination[1]); player.ClearCommandHistory(); } }