Minor slippery stuff (#20535)

This commit is contained in:
metalgearsloth
2023-09-28 20:27:35 +10:00
committed by GitHub
parent e502b6be61
commit 040538a0b7
2 changed files with 2 additions and 9 deletions

View File

@@ -61,7 +61,8 @@ namespace Content.Shared.StatusEffect
if (args.Current is not StatusEffectsComponentState state)
return;
component.AllowedEffects = new(state.AllowedEffects);
component.AllowedEffects.Clear();
component.AllowedEffects.AddRange(state.AllowedEffects);
// Remove non-existent effects.
foreach (var effect in component.ActiveEffects.Keys)