fix: Fix ConsumeTotal always failing (#1534)
This commit is contained in:
parent
f4db1e3aad
commit
d0d81d0d5f
1 changed files with 2 additions and 1 deletions
|
|
@ -1262,7 +1262,8 @@ public partial class Container : Item
|
|||
{
|
||||
if (type.IsInstanceOfType(item))
|
||||
{
|
||||
Items.Add(item);
|
||||
items.Enqueue(item);
|
||||
|
||||
total += item.Amount;
|
||||
if (total >= amount)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue