Specify LoadMap for nukie planet (#12696)

This commit is contained in:
metalgearsloth
2022-12-10 14:40:56 +11:00
committed by GitHub
parent b491235ad0
commit a8f9d1a79f

View File

@@ -621,8 +621,12 @@ public sealed class NukeopsRuleSystem : GameRuleSystem
}
var mapId = _mapManager.CreateMap();
var options = new MapLoadOptions()
{
LoadMap = true,
};
if (!_map.TryLoad(mapId, path.ToString(), out var outpostGrids) || outpostGrids.Count == 0)
if (!_map.TryLoad(mapId, path.ToString(), out var outpostGrids, options) || outpostGrids.Count == 0)
{
Logger.ErrorS("nukies", $"Error loading map {path} for nukies!");
return false;