Skip to content

Commit

Permalink
fix(FieldGenerators): Add missing connection check (#30468)
Browse files Browse the repository at this point in the history
.
  • Loading branch information
Brandon Hu authored Aug 7, 2024
1 parent 9903d36 commit 2dabf33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private void OnReanchorEvent(Entity<ContainmentFieldGeneratorComponent> generato
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();
Expand Down

0 comments on commit 2dabf33

Please sign in to comment.