backport detect world limits for upper top biome from minenux fork

* ff71198689
* ff71198689
This commit is contained in:
mckaygerhard 2023-01-01 23:31:11 -04:00
parent 0d668e52ae
commit 5545bc0d48

View File

@ -5,6 +5,7 @@ local mgv7_spflags = minetest.get_mapgen_setting("mgv7_spflags") or "mountains,
local captures_float = string.match(mgv7_spflags, "floatlands")
local captures_nofloat = string.match(mgv7_spflags, "nofloatlands")
local floatland_y = minetest.get_mapgen_setting("mgv7_floatland_level") or 1280
local worldlimit = minetest.get_mapgen_setting("mapgen_limit") or 31000
local mount_height = minetest.get_mapgen_setting("mgv7_float_mount_height") or 128
local mount_dens = minetest.get_mapgen_setting("mgv7_float_mount_density") or 0.6
@ -116,11 +117,11 @@ minetest.register_biome({
depth_riverbed = 2,
node_water = "default:water_source",
node_river_water = "default:river_water",
depth_water_top = 5,
depth_water_top = 15,
node_water_top = "default:water_source",
node_stone = "floatland:stone",
y_min = floatland_y + 40,
y_max = 31000,
y_max = worldlimit,
heat_point = 50,
humidity_point = 50,
})