1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 08:55:01 -05:00

Mgv5/v7: Add check for water for deciding biome node stability

This commit is contained in:
paramat 2015-04-16 03:45:42 +01:00
parent a09e4427d6
commit ad789be45b
2 changed files with 2 additions and 2 deletions

View File

@ -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++;

View File

@ -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++;