From 261592f108f62f7bc6c9085735b3a0d448f4d968 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Mon, 12 Jun 2023 00:57:07 +0200 Subject: [PATCH] clear sandbox jic it matters --- autocrafter.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autocrafter.lua b/autocrafter.lua index 1bb4038..0ac5f1a 100644 --- a/autocrafter.lua +++ b/autocrafter.lua @@ -68,6 +68,8 @@ local function autocraft(inventory, craft) -- success, so apply to actual output inventory inventory:set_list("dst", sandbox_inv:get_list("")) + -- clear sandbox, just in case it matters + sandbox_inv:set_list("", {}) -- consume materials for itemname, number in pairs(consumption) do for _ = 1, number do -- We have to do that since remove_item does not work if count > stack_max