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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user