Fix server selection menu not opening (#13876)

This commit is contained in:
Nemanja
2023-02-02 22:46:50 -05:00
committed by GitHub
parent 6cd1a6c800
commit f1445b9dab

View File

@@ -46,7 +46,7 @@ public sealed partial class ResearchSystem
private void OnConsoleSelect(EntityUid uid, ResearchClientComponent component, ConsoleServerSelectionMessage args)
{
if (!HasComp<TechnologyDatabaseComponent>(uid) || !this.IsPowered(uid, EntityManager))
if (!this.IsPowered(uid, EntityManager))
return;
_uiSystem.TryToggleUi(uid, ResearchClientUiKey.Key, (IPlayerSession) args.Session);
@@ -95,7 +95,7 @@ public sealed partial class ResearchSystem
var state = new ResearchClientBoundInterfaceState(names.Length, names,
GetServerIds(), component.ConnectedToServer ? serverComponent.Id : -1);
_uiSystem.TrySetUiState(component.Owner, ResearchClientUiKey.Key, state);
_uiSystem.TrySetUiState(uid, ResearchClientUiKey.Key, state);
}
/// <summary>