1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

updated example map generator python script

This commit is contained in:
Perttu Ahola 2011-04-11 18:33:05 +03:00
parent 50a8087684
commit 81ac026e1f
4 changed files with 176 additions and 22 deletions

View file

@ -4711,6 +4711,9 @@ plan_b:
/*
Plan B: Get from map generator perlin noise function
*/
// This won't work if proper generation is disabled
if(m_chunksize == 0)
return WATER_LEVEL+2;
double level = base_rock_level_2d(m_seed, p2d);
return (s16)level;
}