From 27d41b3a5b80d559c2847d30cb38252e50fe8fce Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com> Date: Mon, 17 Oct 2022 17:49:38 +0200 Subject: [PATCH] Shutdown cleanup for stack type handler (#11996) --- Content.Shared/Stacks/SharedStackSystem.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Content.Shared/Stacks/SharedStackSystem.cs b/Content.Shared/Stacks/SharedStackSystem.cs index 8a19365507..8465b8706c 100644 --- a/Content.Shared/Stacks/SharedStackSystem.cs +++ b/Content.Shared/Stacks/SharedStackSystem.cs @@ -34,6 +34,14 @@ namespace Content.Shared.Stacks .AddPath(nameof(SharedStackComponent.Count), (_, comp) => comp.Count, SetCount); } + public override void Shutdown() + { + base.Shutdown(); + + _vvm.GetTypeHandler() + .RemovePath(nameof(SharedStackComponent.Count)); + } + private void OnStackInteractUsing(EntityUid uid, SharedStackComponent stack, InteractUsingEvent args) { if (args.Handled)