Fix Gas Analyzers not opening (#27610)

This commit is contained in:
Leon Friedrich 2024-05-02 18:00:01 +12:00 committed by null
parent 2cc879bb1c
commit 4d9825de64
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 2 additions and 2 deletions

View File

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