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)
|
if (hasLinking && HasComp<DeviceListComponent>(target) || hasLinking == configurator.LinkModeActive)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (hasLinking)
|
var hasNetworking = HasComp<DeviceNetworkComponent>(target);
|
||||||
{
|
if (hasNetworking)
|
||||||
SetMode(configuratorUid, configurator, userUid, true);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (HasComp<DeviceNetworkComponent>(target))
|
|
||||||
SetMode(configuratorUid, configurator, userUid, false);
|
SetMode(configuratorUid, configurator, userUid, false);
|
||||||
|
else if (hasLinking)
|
||||||
|
SetMode(configuratorUid, configurator, userUid, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user