From: Varen Date: Wed, 1 Oct 2025 19:59:28 +0000 (+0200) Subject: Allow multitool device saving on devices with wireless (#38938) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=37ee54621a492bac36e581d23f0e72a6c5e52763;p=space-station-14.git Allow multitool device saving on devices with wireless (#38938) -Device network list will not override device linking anymore if existing --- diff --git a/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs b/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs index e34929bd2e..97b27821fd 100644 --- a/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs +++ b/Content.Server/DeviceNetwork/Systems/NetworkConfiguratorSystem.cs @@ -361,14 +361,11 @@ public sealed class NetworkConfiguratorSystem : SharedNetworkConfiguratorSystem if (hasLinking && HasComp(target) || hasLinking == configurator.LinkModeActive) return; - if (hasLinking) - { - SetMode(configuratorUid, configurator, userUid, true); - return; - } - - if (HasComp(target)) + var hasNetworking = HasComp(target); + if (hasNetworking) SetMode(configuratorUid, configurator, userUid, false); + else if (hasLinking) + SetMode(configuratorUid, configurator, userUid, true); } #endregion