From: Brandon Hu <103440971+Brandon-Huu@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:43:21 +0000 (+0000) Subject: fix(FieldGenerators): Add missing connection check (#30468) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2dabf33d46de01e9e4f346882c4872fe3b00efff;p=space-station-14.git fix(FieldGenerators): Add missing connection check (#30468) . --- diff --git a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs index f02c2bfd0d..ca32beb8db 100644 --- a/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs +++ b/Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs @@ -117,7 +117,7 @@ public sealed class ContainmentFieldGeneratorSystem : EntitySystem private void OnUnanchorAttempt(EntityUid uid, ContainmentFieldGeneratorComponent component, UnanchorAttemptEvent args) { - if (component.Enabled) + if (component.Enabled || component.IsConnected) { _popupSystem.PopupEntity(Loc.GetString("comp-containment-anchor-warning"), args.User, args.User, PopupType.LargeCaution); args.Cancel();