From 1b955935cbd7045cb39a804515d797d0b257168b Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Sun, 9 Jun 2024 10:02:33 +1200 Subject: [PATCH 1/3] Update inventory-manager.lic --- inventory-manager.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-manager.lic b/inventory-manager.lic index e54800d081..36dab00811 100644 --- a/inventory-manager.lic +++ b/inventory-manager.lic @@ -386,7 +386,7 @@ class InventoryManager end end - for surface in surfaces + surfaces.each do |surface| capture = Lich::Util.issue_command(surface[1], /, you see:/) capture.each do |line| line = line.lstrip From 0678b459d5bdfbbc2ccee16204ad7135ce03f0c4 Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Sun, 9 Jun 2024 10:02:43 +1200 Subject: [PATCH 2/3] Update inventory-manager.lic --- inventory-manager.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-manager.lic b/inventory-manager.lic index 36dab00811..c53c52b25d 100644 --- a/inventory-manager.lic +++ b/inventory-manager.lic @@ -315,7 +315,7 @@ class InventoryManager end else # no stacker variable, so they are using stack-scrolls. loop through their scroll stackers and parse them - for scroll_stacker in scroll_stackers + scroll_stackers.each do |scroll_stacker| DRCI.get_item_safe?(scroll_stacker, stacker_container) spells.concat(check_scroll_stacker(scroll_stacker)) DRCI.put_away_item?(scroll_stacker, stacker_container) From ab838c9fb70e98428829dd96245eed0af10b4e9a Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Sun, 9 Jun 2024 10:05:21 +1200 Subject: [PATCH 3/3] Update inventory-manager.lic --- inventory-manager.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-manager.lic b/inventory-manager.lic index c53c52b25d..ea65722643 100644 --- a/inventory-manager.lic +++ b/inventory-manager.lic @@ -322,7 +322,7 @@ class InventoryManager end end - for spell in spells.sort + spells.sort.each do |spell| @item_data[@active_character] << spell end