diff --git a/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs b/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs index dd29e8e2e3..a661fbd70b 100644 --- a/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs +++ b/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs @@ -148,17 +148,19 @@ public sealed class NetworkConfiguratorSystem : SharedNetworkConfiguratorSystem return; } - if (HasComp(target) && HasComp(configurator.ActiveDeviceLink) - || HasComp(target) && HasComp(configurator.ActiveDeviceLink)) + if (configurator.ActiveDeviceLink.HasValue + && (HasComp(target) + && HasComp(configurator.ActiveDeviceLink) + || HasComp(target) + && HasComp(configurator.ActiveDeviceLink))) { + OpenDeviceLinkUi(uid, target, user, configurator); return; } - if (configurator.ActiveDeviceLink.HasValue) - { - OpenDeviceLinkUi( uid, target, user, configurator); + if (HasComp(target) && HasComp(configurator.ActiveDeviceLink) + || HasComp(target) && HasComp(configurator.ActiveDeviceLink)) return; - } _popupSystem.PopupEntity(Loc.GetString("network-configurator-link-mode-started", ("device", Name(target.Value))), target.Value, user); configurator.ActiveDeviceLink = target;