From 2dabf33d46de01e9e4f346882c4872fe3b00efff Mon Sep 17 00:00:00 2001 From: Brandon Hu <103440971+Brandon-Huu@users.noreply.github.com> Date: Wed, 7 Aug 2024 03:43:21 +0000 Subject: [PATCH] fix(FieldGenerators): Add missing connection check (#30468) . --- .../EntitySystems/ContainmentFieldGeneratorSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();