mirror of
https://github.com/minetest/minetest.git
synced 2024-11-09 01:03:46 +01:00
Mgv5: Fix above/below ground spawn when water level is altered
This commit is contained in:
parent
ad789be45b
commit
d02300a749
@ -175,7 +175,7 @@ int MapgenV5::getGroundLevelAtPoint(v2s16 p)
|
||||
f = 0.01;
|
||||
else if (f >= 1.0)
|
||||
f *= 1.6;
|
||||
float h = water_level + NoisePerlin2D(&noise_height->np, p.X, p.Y, seed);
|
||||
float h = NoisePerlin2D(&noise_height->np, p.X, p.Y, seed);
|
||||
|
||||
s16 search_top = water_level + 15;
|
||||
s16 search_base = water_level;
|
||||
|
Loading…
Reference in New Issue
Block a user