enforce cavern setting for nether generation

people unticking the "caverns" box probably do not expect that this
only applies to nether "terrain"
This commit is contained in:
cora 2022-10-28 06:31:56 +02:00
parent 1c6d1c958a
commit 5d26595f4a
1 changed files with 7 additions and 0 deletions

View File

@ -106,16 +106,23 @@ end
if mg_name == "v7" then
minetest.set_mapgen_setting("mgv7_cavern_threshold", "0.20", true)
mg_flags.caverns = true
elseif mg_name == "valleys" then
minetest.set_mapgen_setting("mgvalleys_cavern_threshold", "0.20", true)
mg_flags.caverns = true
elseif mg_name == "carpathian" then
minetest.set_mapgen_setting("mgcarpathian_cavern_threshold", "0.20", true)
mg_flags.caverns = true
elseif mg_name == "v5" then
minetest.set_mapgen_setting("mgv5_cavern_threshold", "0.20", true)
mg_flags.caverns = true
elseif mg_name == "fractal" then
minetest.set_mapgen_setting("mgfractal_cavern_threshold", "0.20", true)
mg_flags.caverns = true
end
local mg_flags_str = ""
for k,v in pairs(mg_flags) do
if v == false then