From ad789be45b1ec1333f5908b89efd85f5b29fb940 Mon Sep 17 00:00:00 2001 From: paramat Date: Thu, 16 Apr 2015 03:45:42 +0100 Subject: [PATCH] Mgv5/v7: Add check for water for deciding biome node stability --- src/mapgen_v5.cpp | 2 +- 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++;