diff --git a/src/mapgen_v5.cpp b/src/mapgen_v5.cpp index 2284c1ec..6c3d678e 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 12ca12a8..443aea28 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++;