Shutdown cleanup for stack type handler (#11996)
This commit is contained in:
committed by
GitHub
parent
f83f16df16
commit
27d41b3a5b
@@ -34,6 +34,14 @@ namespace Content.Shared.Stacks
|
||||
.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)
|
||||
|
||||
Reference in New Issue
Block a user