Fix Gas Analyzers not opening (#27610)

This commit is contained in:
Leon Friedrich
2024-05-02 18:00:01 +12:00
committed by GitHub
parent a7e6337cbd
commit fd9894164f

View File

@@ -95,9 +95,9 @@ namespace Content.Server.Atmos.EntitySystems
component.Enabled = true; component.Enabled = true;
Dirty(uid, component); Dirty(uid, component);
UpdateAppearance(uid, component); UpdateAppearance(uid, component);
if (!HasComp<ActiveGasAnalyzerComponent>(uid)) EnsureComp<ActiveGasAnalyzerComponent>(uid);
AddComp<ActiveGasAnalyzerComponent>(uid);
UpdateAnalyzer(uid, component); UpdateAnalyzer(uid, component);
OpenUserInterface(uid, user, component);
} }
/// <summary> /// <summary>