Fix StackComponent not getting removed from containers when empty (#1645)

This commit is contained in:
ShadowCommander
2020-08-11 08:38:00 -07:00
committed by GitHub
parent 452a67032f
commit 0d29b15ae0
3 changed files with 6 additions and 12 deletions

View File

@@ -28,15 +28,7 @@ namespace Content.Server.GameObjects.Components.Stack
public override int Count
{
get => base.Count;
set
{
base.Count = value;
if (Count <= 0)
{
Owner.Delete();
}
}
set => base.Count = value;
}
[ViewVariables(VVAccess.ReadWrite)]