fix(FieldGenerators): Add missing connection check (#30468)

.
This commit is contained in:
Brandon Hu
2024-08-09 18:58:46 +01:00
committed by deltanedas
parent 2ccdc13c29
commit e54b983e17
@@ -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();