code tidy
This commit is contained in:
parent
89cb60e394
commit
c821fef3ad
@ -98,12 +98,7 @@ function building_lib.check_condition_group(mapblock_pos1, mapblock_pos2, condit
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
while true do
|
for mapblock_pos in it do
|
||||||
local mapblock_pos = it()
|
|
||||||
if not mapblock_pos then
|
|
||||||
break
|
|
||||||
end
|
|
||||||
|
|
||||||
success, err = building_lib.check_condition_table(conditions, mapblock_pos)
|
success, err = building_lib.check_condition_table(conditions, mapblock_pos)
|
||||||
if not success then
|
if not success then
|
||||||
group_match = false
|
group_match = false
|
||||||
|
@ -33,8 +33,7 @@ building_lib.register_placement("mapblock_lib", {
|
|||||||
|
|
||||||
local iterator = mapblock_lib.pos_iterator(catalog_pos1, catalog_pos2)
|
local iterator = mapblock_lib.pos_iterator(catalog_pos1, catalog_pos2)
|
||||||
|
|
||||||
local worker
|
local function worker()
|
||||||
worker = function()
|
|
||||||
local catalog_pos = iterator()
|
local catalog_pos = iterator()
|
||||||
if not catalog_pos then
|
if not catalog_pos then
|
||||||
return callback()
|
return callback()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user