From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Mon, 18 Dec 2023 07:37:13 +0000 (-0500) Subject: Add atmos error log (#22696) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=51115d3d384c48dc004f8248a26dfc1b1bd09a68;p=space-station-14.git Add atmos error log (#22696) --- diff --git a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs index 8cd47ca00c..09affe2e5c 100644 --- a/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs +++ b/Content.Server/Atmos/EntitySystems/AtmosphereSystem.Processing.cs @@ -4,6 +4,7 @@ using Content.Server.NodeContainer.NodeGroups; using Content.Shared.Atmos; using Content.Shared.Atmos.Components; using Content.Shared.Maps; +using Robust.Shared.Map; using Robust.Shared.Map.Components; using Robust.Shared.Physics.Components; using Robust.Shared.Timing; @@ -449,6 +450,17 @@ namespace Content.Server.Atmos.EntitySystems var (owner, atmosphere) = ent; TryComp(owner, out GasTileOverlayComponent? visuals); + if (!TryComp(owner, out TransformComponent? x) + || x.MapUid == null + || TerminatingOrDeleted(x.MapUid.Value) + || x.MapID == MapId.Nullspace) + { + Log.Error($"Attempting to process atmos without a map? Entity: {ToPrettyString(owner)}"); + _simulationPaused = false; + _currentRunAtmosphere.Clear(); + continue; + } + if (atmosphere.LifeStage >= ComponentLifeStage.Stopping || Paused(owner) || !atmosphere.Simulated) continue;