mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 11:33:44 +01:00
Mgv5/v7: Add check for water for deciding biome node stability
This commit is contained in:
parent
a09e4427d6
commit
ad789be45b
@ -426,7 +426,7 @@ bool MapgenV5::generateBiomes(float *heat_map, float *humidity_map)
|
|||||||
if (c == c_stone && have_air) {
|
if (c == c_stone && have_air) {
|
||||||
content_t c_below = vm->m_data[i - em.X].getContent();
|
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) {
|
if (nplaced < y0_top) {
|
||||||
vm->m_data[i] = MapNode(biome->c_top);
|
vm->m_data[i] = MapNode(biome->c_top);
|
||||||
nplaced++;
|
nplaced++;
|
||||||
|
@ -620,7 +620,7 @@ bool MapgenV7::generateBiomes(float *heat_map, float *humidity_map)
|
|||||||
if (c == c_stone && have_air) {
|
if (c == c_stone && have_air) {
|
||||||
content_t c_below = vm->m_data[i - em.X].getContent();
|
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) {
|
if (nplaced < y0_top) {
|
||||||
vm->m_data[i] = MapNode(biome->c_top);
|
vm->m_data[i] = MapNode(biome->c_top);
|
||||||
nplaced++;
|
nplaced++;
|
||||||
|
Loading…
Reference in New Issue
Block a user