using Content.Shared.StatusEffectNew; using Content.Shared.StatusEffectNew.Components; namespace Content.Server.StatusEffectNew; /// public sealed partial class StatusEffectsSystem : SharedStatusEffectsSystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnContainerShutdown); } private void OnContainerShutdown(Entity ent, ref ComponentShutdown args) { foreach (var effect in ent.Comp.ActiveStatusEffects) { QueueDel(effect); } } }