Code: Select all
local chunk_count = 0
local apply_map_gen_2 = false
local on_chunk_generated = function(event)
chunk_count = chunk_count + 1
if (chunk_count == 1600) then
apply_map_gen_2 = true
end
end
local on_sector_scanned = function(event)
if (apply_map_gen_2 == true) then
map_gen_2()
apply_map_gen_2 = false
end
end