Revert FirstOrDefault change

This commit is contained in:
John Gross
2018-04-03 00:05:32 -07:00
parent f03bfd2d7a
commit b2bf0229ed

View File

@@ -86,7 +86,7 @@ namespace Torch.Server.Managers
public void SelectWorld(string worldPath, bool modsOnly = true)
{
DedicatedConfig.LoadWorld = worldPath;
DedicatedConfig.SelectedWorld = DedicatedConfig.Worlds.First(x => x.WorldPath == worldPath);
DedicatedConfig.SelectedWorld = DedicatedConfig.Worlds.FirstOrDefault(x => x.WorldPath == worldPath);
}
public void SelectWorld(WorldViewModel world, bool modsOnly = true)