fix multi-servers not working (#13095)
This commit is contained in:
@@ -17,12 +17,19 @@ namespace Content.Server.Research.Systems
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<ResearchServerComponent, ComponentStartup>(OnStartup);
|
||||
|
||||
InitializeClient();
|
||||
InitializeConsole();
|
||||
InitializeSource();
|
||||
InitializeTechnology();
|
||||
}
|
||||
|
||||
private void OnStartup(EntityUid uid, ResearchServerComponent component, ComponentStartup args)
|
||||
{
|
||||
component.Id = EntityQuery<ResearchServerComponent>(true).Count();
|
||||
}
|
||||
|
||||
public ResearchServerComponent? GetServerById(int id)
|
||||
{
|
||||
foreach (var server in EntityQuery<ResearchServerComponent>())
|
||||
|
||||
Reference in New Issue
Block a user