From 3b10cf3bfcb14a18129f1156cc0c694db41fd6d7 Mon Sep 17 00:00:00 2001 From: Mako <61922615+Makonede@users.noreply.github.com> Date: Thu, 26 Oct 2023 16:31:03 -0700 Subject: [PATCH] Remove zero stacks in removeAll Signed-off-by: Mako <61922615+Makonede@users.noreply.github.com> --- src/core/inventory/SlotsCore.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/inventory/SlotsCore.ts b/src/core/inventory/SlotsCore.ts index cc3880c..f415638 100644 --- a/src/core/inventory/SlotsCore.ts +++ b/src/core/inventory/SlotsCore.ts @@ -147,6 +147,7 @@ export class SlotsCore { public removeAll(types: ItemType[]) { inPlaceFilter(this.internalSlots, ref=>!types.includes(ref.get().item.type)); + this.removeZeroStackExceptArrows(); } public unequipAll(types: ItemType[]) {