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:
parent
50a8087684
commit
81ac026e1f
4 changed files with 176 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue