mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
Make StatusEffectsSystem's cache an instance field (#42762)
make statuseffectsystem's cache not static
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user