From 4670066c1ec1cb4d9c00c4ab86c25a6e81f78f04 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Mon, 1 Jan 2024 19:17:49 -0800 Subject: [PATCH] Fix craft counts. Add more crafting monitor logging. --- modules/network/autocraft.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/network/autocraft.lua b/modules/network/autocraft.lua index aad04f8..0674a5b 100644 --- a/modules/network/autocraft.lua +++ b/modules/network/autocraft.lua @@ -210,6 +210,7 @@ local function build(net, cpos, inv, name, count, stack, sink, time) if built then hasit = true next_time = math.max(next_time, time + step_time) + me.ac_status = me.ac_status .. "Craft "..count.." "..name.." in "..step_time.." seconds.\n" else me.log("can't craft "..istack:get_count().." "..istack:get_name(), "error") me.ac_status = me.ac_status .. "Can't craft "..count.." "..name..".\n" @@ -420,10 +421,10 @@ function me.autocraft(autocrafterCache, cpos, net, linv, inv, count) local built, step_time = build(net, cpos, inv, name, count*craft_count, stack, sink, start_time) if built then me.log("crafting "..stack:get_count().." "..stack:get_name().." in "..step_time.." seconds", "error") - me.ac_status = me.ac_status .. "Crafting "..count.." "..name.." in "..step_time.." seconds.\n" + me.ac_status = me.ac_status .. "Crafting "..(count*craft_count).." "..name.." in "..step_time.." seconds.\n" else me.log("can't craft "..stack:get_count().." "..stack:get_name(), "error") - me.ac_status = me.ac_status .. "Can't craft "..count.." "..name..".\n" + me.ac_status = me.ac_status .. "Can't craft "..(count*craft_count).." "..name..".\n" end return end