mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-18 05:59:03 +03:00
Add atmos error log (#22696)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user