From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Thu, 2 May 2024 06:00:01 +0000 (+1200) Subject: Fix Gas Analyzers not opening (#27610) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=fd9894164f7f04f151fab8c8a73efaf47e1502c6;p=space-station-14.git Fix Gas Analyzers not opening (#27610) --- diff --git a/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs b/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs index 15e1dde4ec..b42f362629 100644 --- a/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs +++ b/Content.Server/Atmos/EntitySystems/GasAnalyzerSystem.cs @@ -95,9 +95,9 @@ namespace Content.Server.Atmos.EntitySystems component.Enabled = true; Dirty(uid, component); UpdateAppearance(uid, component); - if (!HasComp(uid)) - AddComp(uid); + EnsureComp(uid); UpdateAnalyzer(uid, component); + OpenUserInterface(uid, user, component); } ///