Use biomegen.skip_chunk and place it before timer.

This commit is contained in:
Gaël C 2024-02-11 22:19:21 +01:00
parent dcc71225ae
commit b406bebb7b

View File

@ -128,6 +128,10 @@ function mapgen_rivers.make_chunk(minp, maxp, seed)
-- If not, skip chunk
if is_empty then
if use_biomegen_mod and biomegen.skip_chunk then
biomegen.skip_chunk(minp, maxp)
end
local t = os.clock() - t0
ngen = ngen + 1
sumtime = sumtime + t
@ -135,9 +139,6 @@ function mapgen_rivers.make_chunk(minp, maxp, seed)
minetest.log("verbose", "[mapgen_rivers] Skipping empty chunk (fully above ground level)")
minetest.log("verbose", ("[mapgen_rivers] Done in %5.3f s"):format(t))
if use_biomegen_mod and biomegen.make_void_maps then
biomegen.make_void_maps(minp, maxp)
end
return
end
end