Skip to content

Commit

Permalink
Update autowheelbarrow.lua
Browse files Browse the repository at this point in the history
Changed the amount of days it takes to loop the program as when there are to many wheelbarrows it can take a few days to carry the wheelbarrow over to a stockpile resulting in a infinite loop. 

Changing to 7 days results in even kids reaching their destination with a wheelbarrow before the 7th day.
  • Loading branch information
unboundlopez authored Oct 18, 2024
1 parent 5fe65dd commit bcf1e02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autowheelbarrow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ local function event_loop()
if enabled then
dfhack.println("Running autowheelbarrow.lua ")
auto_wheelbarrows()
-- Check again in 1 days
repeatutil.scheduleUnlessAlreadyScheduled(GLOBAL_KEY, 1, "days", event_loop)
-- Check again in 7 days
repeatutil.scheduleUnlessAlreadyScheduled(GLOBAL_KEY, 7, "days", event_loop)
end
end

Expand Down

0 comments on commit bcf1e02

Please sign in to comment.