Make StatusEffectsSystem's cache an instance field (#42762)

make statuseffectsystem's cache not static
This commit is contained in:
Centronias
2026-02-02 21:38:26 -08:00
committed by GitHub
parent 748179752f
commit d448f0454e
2 changed files with 2 additions and 2 deletions

View File

@@ -11,6 +11,6 @@ public sealed class StatusEffectCompletionParser : CustomCompletionParser<EntPro
{
public override CompletionResult? TryAutocomplete(ParserContext ctx, CommandArgument? arg)
{
return CompletionResult.FromHintOptions(StatusEffectsSystem.StatusEffectPrototypes, GetArgHint(arg));
return CompletionResult.FromHintOptions(IoCManager.Resolve<StatusEffectsSystem>().StatusEffectPrototypes, GetArgHint(arg));
}
}

View File

@@ -23,7 +23,7 @@ public sealed partial class StatusEffectsSystem : EntitySystem
private EntityQuery<StatusEffectContainerComponent> _containerQuery;
private EntityQuery<StatusEffectComponent> _effectQuery;
public static HashSet<string> StatusEffectPrototypes = [];
public readonly HashSet<string> StatusEffectPrototypes = [];
public override void Initialize()
{