Make `StatusEffectsSystem`'s cache an instance field (#42762)
make statuseffectsystem's cache not static
This commit is contained in:
parent
05f04b9189
commit
43ca70a962
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue