From: Brandon Hu <103440971+Brandon-Huu@users.noreply.github.com> Date: Sun, 25 Aug 2024 18:21:32 +0000 (+0000) Subject: fix(FieldGenerators): Don't show nonsense popup (#30469) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=cf6f7830aa23006f2e5766c145eb9eea70a5b8e4;p=space-station-14.git fix(FieldGenerators): Don't show nonsense popup (#30469) * . --- diff --git a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs index ca32beb8db..05262f2999 100644 --- a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs +++ b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs @@ -166,11 +166,12 @@ public sealed class ContainmentFieldGeneratorSystem : EntitySystem ChangeFieldVisualizer(value.Item1); } component.Connections.Clear(); + if (component.IsConnected) + _popupSystem.PopupEntity(Loc.GetString("comp-containment-disconnected"), uid, PopupType.LargeCaution); component.IsConnected = false; ChangeOnLightVisualizer(generator); ChangeFieldVisualizer(generator); _adminLogger.Add(LogType.FieldGeneration, LogImpact.Medium, $"{ToPrettyString(uid)} lost field connections"); // Ideally LogImpact would depend on if there is a singulo nearby - _popupSystem.PopupEntity(Loc.GetString("comp-containment-disconnected"), uid, PopupType.LargeCaution); } #endregion