mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 00:47:29 +01:00
Mgv5/v7: Add check for water for deciding biome node stability
This commit is contained in:
parent
a09e4427d6
commit
ad789be45b
@ -426,7 +426,7 @@ bool MapgenV5::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++;
|
||||
|
@ -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…
Reference in New Issue
Block a user