From d910921a53177e4e76d2ef0cb441094ed71f2d69 Mon Sep 17 00:00:00 2001 From: LOIRELAB <66545056+LoireLab@users.noreply.github.com> Date: Sun, 27 Jul 2025 01:00:32 +0200 Subject: [PATCH] fix multihaul forward declaration --- multihaul.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/multihaul.lua b/multihaul.lua index 82c5bec08..e9e0da5b6 100644 --- a/multihaul.lua +++ b/multihaul.lua @@ -8,6 +8,8 @@ local itemtools = reqscript('item') local GLOBAL_KEY = 'multihaul' +local finish_jobs_without_wheelbarrow -- forward declaration + local function get_default_state() return { enabled=false, @@ -192,7 +194,7 @@ local function clear_job_items(job) job.items:resize(0) end -local function finish_jobs_without_wheelbarrow() +function finish_jobs_without_wheelbarrow() for _, job in utils.listpairs(df.global.world.jobs.list) do if job.job_type == df.job_type.StoreItemInStockpile and not find_attached_wheelbarrow(job) then