Fix wrong stack count check
This commit is contained in:
@@ -33,7 +33,7 @@ namespace Content.Server.Stack
|
|||||||
public bool Use(EntityUid uid, SharedStackComponent stack, int amount)
|
public bool Use(EntityUid uid, SharedStackComponent stack, int amount)
|
||||||
{
|
{
|
||||||
// Check if we have enough things in the stack for this...
|
// Check if we have enough things in the stack for this...
|
||||||
if (stack.Count <= amount)
|
if (stack.Count < amount)
|
||||||
{
|
{
|
||||||
// Not enough things in the stack, return false.
|
// Not enough things in the stack, return false.
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user