Skip to content

Commit

Permalink
Mgv5/v7: Add check for water for deciding biome node stability
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Apr 16, 2015
1 parent a09e442 commit ad789be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mapgen_v5.cpp
Expand Up @@ -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++;
Expand Down
2 changes: 1 addition & 1 deletion src/mapgen_v7.cpp
Expand Up @@ -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++;
Expand Down

0 comments on commit ad789be

Please sign in to comment.