diff options
-rw-r--r-- | src/mapgen_v5.cpp | 2 | ||||
-rw-r--r-- | src/mapgen_v7.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp index 2284c1ecc..6c3d678ea 100644 --- a/src/mapgen_v5.cpp +++ b/src/mapgen_v5.cpp @@ -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++; diff --git a/src/mapgen_v7.cpp b/src/mapgen_v7.cpp index 12ca12a86..443aea281 100644 --- a/src/mapgen_v7.cpp +++ b/src/mapgen_v7.cpp @@ -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++; |