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 Vanessa
parent 231d2f6892
commit a188e99499
1 changed files with 4 additions and 7 deletions

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