Skip to content

Commit bbead11

Browse files
authored
wheelbarrow_search_radius_k now is called correctly
1 parent a76460f commit bbead11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

multihaul.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ local function find_free_wheelbarrow(stockpile)
160160
if not df.building_stockpilest:is_instance(stockpile) then return nil end
161161
local sx, sy, sz = stockpile.centerx, stockpile.centery, stockpile.z
162162
local found
163-
for_each_item_in_radius(sx, sy, sz, state.radius*wheelbarrow_search_radius_k or 10*wheelbarrow_search_radius_k, function(it)
163+
for_each_item_in_radius(sx, sy, sz, state.radius*state.wheelbarrow_search_radius_k or 10*state.wheelbarrow_search_radius_k, function(it)
164164
if it:isWheelbarrow() and not it.flags.in_job then
165165
found = it
166166
return true

0 commit comments

Comments
 (0)