Allow multitool device saving on devices with wireless (#38938)

-Device network list will not override device linking anymore if existing
This commit is contained in:
Varen
2025-10-01 21:59:28 +02:00
committed by GitHub
parent c95bf3f94f
commit 37ee54621a

View File

@@ -361,14 +361,11 @@ public sealed class NetworkConfiguratorSystem : SharedNetworkConfiguratorSystem
if (hasLinking && HasComp<DeviceListComponent>(target) || hasLinking == configurator.LinkModeActive)
return;
if (hasLinking)
{
SetMode(configuratorUid, configurator, userUid, true);
return;
}
if (HasComp<DeviceNetworkComponent>(target))
var hasNetworking = HasComp<DeviceNetworkComponent>(target);
if (hasNetworking)
SetMode(configuratorUid, configurator, userUid, false);
else if (hasLinking)
SetMode(configuratorUid, configurator, userUid, true);
}
#endregion