Fix server selection menu not opening (#13876)
This commit is contained in:
@@ -46,7 +46,7 @@ public sealed partial class ResearchSystem
|
|||||||
|
|
||||||
private void OnConsoleSelect(EntityUid uid, ResearchClientComponent component, ConsoleServerSelectionMessage args)
|
private void OnConsoleSelect(EntityUid uid, ResearchClientComponent component, ConsoleServerSelectionMessage args)
|
||||||
{
|
{
|
||||||
if (!HasComp<TechnologyDatabaseComponent>(uid) || !this.IsPowered(uid, EntityManager))
|
if (!this.IsPowered(uid, EntityManager))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_uiSystem.TryToggleUi(uid, ResearchClientUiKey.Key, (IPlayerSession) args.Session);
|
_uiSystem.TryToggleUi(uid, ResearchClientUiKey.Key, (IPlayerSession) args.Session);
|
||||||
@@ -95,7 +95,7 @@ public sealed partial class ResearchSystem
|
|||||||
var state = new ResearchClientBoundInterfaceState(names.Length, names,
|
var state = new ResearchClientBoundInterfaceState(names.Length, names,
|
||||||
GetServerIds(), component.ConnectedToServer ? serverComponent.Id : -1);
|
GetServerIds(), component.ConnectedToServer ? serverComponent.Id : -1);
|
||||||
|
|
||||||
_uiSystem.TrySetUiState(component.Owner, ResearchClientUiKey.Key, state);
|
_uiSystem.TrySetUiState(uid, ResearchClientUiKey.Key, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user