Fix device networking, again (#23035)

This commit is contained in:
Leon Friedrich
2023-12-26 23:39:04 -05:00
committed by GitHub
parent 6e07bc70f8
commit af42cf82b7
2 changed files with 7 additions and 4 deletions

View File

@@ -532,12 +532,13 @@ public sealed class NetworkConfiguratorSystem : SharedNetworkConfiguratorSystem
/// </summary>
private void OnUiClosed(EntityUid uid, NetworkConfiguratorComponent component, BoundUIClosedEvent args)
{
component.ActiveDeviceList = null;
if (TryComp(component.ActiveDeviceList, out DeviceListComponent? list))
{
list.Configurators.Remove(uid);
}
component.ActiveDeviceList = null;
if (args.UiKey is NetworkConfiguratorUiKey.Link)
{
component.ActiveDeviceLink = null;