Content BUI changes for engine PR (#10308)

This commit is contained in:
Leon Friedrich
2022-08-06 16:59:02 +12:00
committed by GitHub
parent 9b662c3b62
commit e06ea56eb2
68 changed files with 78 additions and 85 deletions

View File

@@ -645,12 +645,12 @@ namespace Content.Server.Storage.EntitySystems
DebugTools.Assert(storedStorageComp != storageComp, $"Storage component contains itself!? Entity: {uid}");
}
if (TryComp(entity, out ServerUserInterfaceComponent? uiComponent))
if (!TryComp(entity, out ServerUserInterfaceComponent? ui))
continue;
foreach (var bui in ui.Interfaces.Values)
{
foreach (var ui in uiComponent.Interfaces)
{
ui.Close(session);
}
_uiSystem.TryClose(uid, bui.UiKey, session, ui);
}
}
}