fix: Fix ConsumeTotal always failing (#1534)

This commit is contained in:
Eric Vintimilla 2023-10-06 14:02:59 -04:00 committed by GitHub
parent f4db1e3aad
commit d0d81d0d5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{