mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-15 22:05:07 -05:00
Mapgen V6: Respect water_level setting
This commit is contained in:
parent
0c8bf7cf94
commit
b38afc9311
@ -149,8 +149,8 @@ bool MapgenV6::block_is_underground(u64 seed, v3s16 blockpos)
|
|||||||
|
|
||||||
float MapgenV6::baseTerrainLevel(float terrain_base, float terrain_higher,
|
float MapgenV6::baseTerrainLevel(float terrain_base, float terrain_higher,
|
||||||
float steepness, float height_select) {
|
float steepness, float height_select) {
|
||||||
float base = water_level + terrain_base;
|
float base = 1 + terrain_base;
|
||||||
float higher = water_level + terrain_higher;
|
float higher = 1 + terrain_higher;
|
||||||
|
|
||||||
// Limit higher ground level to at least base
|
// Limit higher ground level to at least base
|
||||||
if(higher < base)
|
if(higher < base)
|
||||||
|
Loading…
Reference in New Issue
Block a user