mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-12-28 03:40:39 +01:00
Use biomegen.skip_chunk and place it before timer.
This commit is contained in:
parent
dcc71225ae
commit
b406bebb7b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user