From 4b6001ffe91c4c7fb3ea1908e26c20ffae03c950 Mon Sep 17 00:00:00 2001 From: Rico <97664519+Rico-Rodriguez@users.noreply.github.com> Date: Tue, 12 May 2026 10:27:53 -0900 Subject: [PATCH] Refactor inventory item comparison and cleanup Refactor item comparison to use SameText for case-insensitivity and remove redundant bank deposit loop. --- osrs/interfaces/handlers/inventory_layout.simba | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/osrs/interfaces/handlers/inventory_layout.simba b/osrs/interfaces/handlers/inventory_layout.simba index f51db0d3..56cf6a71 100644 --- a/osrs/interfaces/handlers/inventory_layout.simba +++ b/osrs/interfaces/handlers/inventory_layout.simba @@ -176,7 +176,7 @@ begin for j := 0 to High(items) do for n := 0 to High(bitems) do begin - if items[j] <> bitems[n].Item then Continue; + if not SameText(items[j], bitems[n].Item) then Continue; stack := Inventory.Slots.ReadStack(i); @@ -201,13 +201,6 @@ begin Exit; end; - for i := 0 to High(bitems) do - begin - if bitems[i].Quantity <= 0 then Continue; - if not Bank.Deposit(bitems[i], True) then - Exit; - end; - Result := True; end;