forked from Mirrorlandia_minetest/minetest
Re-add hacky fix for underwater grass, to fix mgv7 user's biomes
This commit is contained in:
parent
1e8e700ee6
commit
173e1f6014
@ -439,10 +439,12 @@ void MapgenV5::generateBiomes() {
|
|||||||
|
|
||||||
if (c_below != CONTENT_AIR) {
|
if (c_below != CONTENT_AIR) {
|
||||||
if (nplaced < y0_top) {
|
if (nplaced < y0_top) {
|
||||||
if(y < water_level)
|
// A hack to prevent dirt_with_grass from being
|
||||||
vm->m_data[i] = MapNode(biome->c_filler);
|
// placed below water. TODO: fix later
|
||||||
else
|
content_t c_place = ((y < water_level) &&
|
||||||
vm->m_data[i] = MapNode(biome->c_top);
|
(biome->c_top == c_dirt_with_grass)) ?
|
||||||
|
c_dirt : biome->c_top;
|
||||||
|
vm->m_data[i] = MapNode(c_place);
|
||||||
nplaced++;
|
nplaced++;
|
||||||
} else if (nplaced < y0_filler && nplaced >= y0_top) {
|
} else if (nplaced < y0_filler && nplaced >= y0_top) {
|
||||||
vm->m_data[i] = MapNode(biome->c_filler);
|
vm->m_data[i] = MapNode(biome->c_filler);
|
||||||
|
@ -545,10 +545,12 @@ void MapgenV7::generateBiomes() {
|
|||||||
|
|
||||||
if (c_below != CONTENT_AIR) {
|
if (c_below != CONTENT_AIR) {
|
||||||
if (nplaced < y0_top) {
|
if (nplaced < y0_top) {
|
||||||
if(y < water_level)
|
// A hack to prevent dirt_with_grass from being
|
||||||
vm->m_data[i] = MapNode(biome->c_filler);
|
// placed below water. TODO: fix later
|
||||||
else
|
content_t c_place = ((y < water_level) &&
|
||||||
vm->m_data[i] = MapNode(biome->c_top);
|
(biome->c_top == c_dirt_with_grass)) ?
|
||||||
|
c_dirt : biome->c_top;
|
||||||
|
vm->m_data[i] = MapNode(c_place);
|
||||||
nplaced++;
|
nplaced++;
|
||||||
} else if (nplaced < y0_filler && nplaced >= y0_top) {
|
} else if (nplaced < y0_filler && nplaced >= y0_top) {
|
||||||
vm->m_data[i] = MapNode(biome->c_filler);
|
vm->m_data[i] = MapNode(biome->c_filler);
|
||||||
|
Loading…
Reference in New Issue
Block a user