mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 16:08:51 -05: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;
|
f = 0.01;
|
||||||
else if (f >= 1.0)
|
else if (f >= 1.0)
|
||||||
f *= 1.6;
|
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_top = water_level + 15;
|
||||||
s16 search_base = water_level;
|
s16 search_base = water_level;
|
||||||
|
Loading…
Reference in New Issue
Block a user