Adds support for unlimited stacks (#5084)

Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
ike709
2021-10-31 08:27:11 -05:00
committed by GitHub
parent 0bbc4d9afe
commit 0865409521
3 changed files with 16 additions and 2 deletions

View File

@@ -73,7 +73,11 @@ namespace Content.Shared.Stacks
}
// We do have enough things in the stack, so remove them and change.
SetCount(uid, stack.Count - amount, stack);
if (!stack.Unlimited)
{
SetCount(uid, stack.Count - amount, stack);
}
return true;
}