Adds support for unlimited stacks (#5084)
Co-authored-by: ike709 <ike709@github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user