Skip to content

Commit ad789be

Browse files
committedApr 16, 2015
Mgv5/v7: Add check for water for deciding biome node stability
1 parent a09e442 commit ad789be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

Diff for: ‎src/mapgen_v5.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ bool MapgenV5::generateBiomes(float *heat_map, float *humidity_map)
426426
if (c == c_stone && have_air) {
427427
content_t c_below = vm->m_data[i - em.X].getContent();
428428

429-
if (c_below != CONTENT_AIR) {
429+
if (c_below != CONTENT_AIR && c_below != c_water_source) {
430430
if (nplaced < y0_top) {
431431
vm->m_data[i] = MapNode(biome->c_top);
432432
nplaced++;

Diff for: ‎src/mapgen_v7.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ bool MapgenV7::generateBiomes(float *heat_map, float *humidity_map)
620620
if (c == c_stone && have_air) {
621621
content_t c_below = vm->m_data[i - em.X].getContent();
622622

623-
if (c_below != CONTENT_AIR) {
623+
if (c_below != CONTENT_AIR && c_below != c_water_source) {
624624
if (nplaced < y0_top) {
625625
vm->m_data[i] = MapNode(biome->c_top);
626626
nplaced++;

0 commit comments

Comments
 (0)
Please sign in to comment.