1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05:00

Mgv5: Fix above/below ground spawn when water level is altered

This commit is contained in:
paramat 2015-04-16 06:16:54 +01:00
parent ad789be45b
commit d02300a749

View File

@ -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;