Skip to content

Commit

Permalink
Shutdown cleanup for stack type handler (space-wizards#11996)
Browse files Browse the repository at this point in the history
  • Loading branch information
gradientvera authored Oct 17, 2022
1 parent f83f16d commit 27d41b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Content.Shared/Stacks/SharedStackSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ public override void Initialize()
.AddPath(nameof(SharedStackComponent.Count), (_, comp) => comp.Count, SetCount);
}

public override void Shutdown()
{
base.Shutdown();

_vvm.GetTypeHandler<SharedStackComponent>()
.RemovePath(nameof(SharedStackComponent.Count));
}

private void OnStackInteractUsing(EntityUid uid, SharedStackComponent stack, InteractUsingEvent args)
{
if (args.Handled)
Expand Down

0 comments on commit 27d41b3

Please sign in to comment.