mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Mgv5/v7: Add check for water for deciding biome node stability
This commit is contained in:
parent
a09e4427d6
commit
ad789be45b
2 changed files with 2 additions and 2 deletions
|
@ -620,7 +620,7 @@ bool MapgenV7::generateBiomes(float *heat_map, float *humidity_map)
|
|||
if (c == c_stone && have_air) {
|
||||
content_t c_below = vm->m_data[i - em.X].getContent();
|
||||
|
||||
if (c_below != CONTENT_AIR) {
|
||||
if (c_below != CONTENT_AIR && c_below != c_water_source) {
|
||||
if (nplaced < y0_top) {
|
||||
vm->m_data[i] = MapNode(biome->c_top);
|
||||
nplaced++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue