Skip to content

Commit b065ce4

Browse files
committed
autounsuspend: skip planned buildings
Fixes DFHack/dfhack#1305
1 parent 982f04d commit b065ce4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

autounsuspend.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def process
1818
count = 0
1919
df.world.jobs.list.each { |job|
2020
if job.job_type == :ConstructBuilding and job.flags.suspend and df.map_tile_at(job).designation.flow_size <= 1
21+
# skip planned buildings
22+
next if job.job_items.length == 1 and job.job_items[0].item_type == :NONE
2123
job.flags.suspend = false
2224
count += 1
2325
end

0 commit comments

Comments
 (0)