From d06fecb2c614caf7239bc5e75ffe89ca42a3eeca Mon Sep 17 00:00:00 2001 From: Derek Hoffmann Date: Fri, 27 Sep 2024 17:27:13 -0400 Subject: [PATCH] [script] [clerk-tools] properly check crafting_items_in_container when storing tools . --- clerk-tools.lic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clerk-tools.lic b/clerk-tools.lic index 4c006d701a..ba48564b31 100644 --- a/clerk-tools.lic +++ b/clerk-tools.lic @@ -14,6 +14,7 @@ class Clerk settings = get_settings hometown = settings.force_crafting_town || settings.hometown @bag = settings.crafting_container + @bag_items = settings.crafting_items_in_container crafting_data = get_data('crafting') @@ -75,7 +76,7 @@ class Clerk echo roomnumber DRCT.walk_to(roomnumber) tools.each do |tool| - DRCC.get_crafting_item(tool, @bag, @belt, @belt) + DRCC.get_crafting_item(tool, @bag, @bag_items, @belt) case DRC.bput("put #{tool} on counter", 'Feel free to come back for your item any time', "You don't have enough space in your storage") when "You don't have enough space in your storage" DRCC.stow_crafting_item(tool, @bag, @belt)