Fix wrong stack count check

This commit is contained in:
Vera Aguilera Puerto
2021-06-13 00:28:48 +02:00
parent 0093a961bc
commit b3e1dfc348

View File

@@ -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;