]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
fix(FieldGenerators): Add missing connection check (#30468)
authorBrandon Hu <103440971+Brandon-Huu@users.noreply.github.com>
Wed, 7 Aug 2024 03:43:21 +0000 (03:43 +0000)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 03:43:21 +0000 (23:43 -0400)
.

Content.Server/Singularity/EntitySystems/ContainmentFieldGeneratorSystem.cs

index f02c2bfd0d11a04325620fd95e1ad30dfe9ee2fd..ca32beb8dbba02f647120f9f29b7ac4b2f97fc05 100644 (file)
@@ -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();