From a8f9d1a79f364ad8b65096329ecc105934221ecc Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 10 Dec 2022 14:40:56 +1100 Subject: [PATCH] Specify LoadMap for nukie planet (#12696) --- Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs index 5f7da63818..5d081167f0 100644 --- a/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs +++ b/Content.Server/GameTicking/Rules/NukeopsRuleSystem.cs @@ -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;