Fix nukeops start (#10355)

This commit is contained in:
metalgearsloth
2022-08-06 14:58:15 +10:00
committed by GitHub
parent efe3429e0c
commit 9b662c3b62
2 changed files with 63 additions and 59 deletions

View File

@@ -207,6 +207,14 @@ public sealed class NukeopsRuleSystem : GameRuleSystem
Offset = Vector2.One * 1000f,
});
// Naughty, someone saved the shuttle as a map.
if (Deleted(outpost))
{
Logger.ErrorS("nukeops", $"Tried to load nukeops shuttle as a map, aborting.");
_mapManager.DeleteMap(mapId);
return;
}
if (TryComp<ShuttleComponent>(shuttleId, out var shuttle))
{
IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<ShuttleSystem>().TryFTLDock(shuttle, outpost.Value);