From d0d81d0d5f4a637222848f863bf22eb7b3cc6ee5 Mon Sep 17 00:00:00 2001 From: Eric Vintimilla <1682329+blendax78@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:02:59 -0400 Subject: [PATCH] fix: Fix ConsumeTotal always failing (#1534) --- Projects/Server/Items/Container.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Projects/Server/Items/Container.cs b/Projects/Server/Items/Container.cs index 9469fa11f..3f7665ada 100644 --- a/Projects/Server/Items/Container.cs +++ b/Projects/Server/Items/Container.cs @@ -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) {