Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion multihaul.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down