We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddd03c3 commit df991edCopy full SHA for df991ed
src/mapgen/mapgen_v7.cpp
@@ -591,6 +591,11 @@ void MapgenV7::generateRidgeTerrain()
591
float uwatern = noise_ridge_uwater->result[index2d] * 2.0f;
592
if (std::fabs(uwatern) > width)
593
continue;
594
+ // Optimises, but also avoids removing nodes placed by mods in
595
+ // 'on-generated', when generating outside mapchunk.
596
+ content_t c = vm->m_data[vi].getContent();
597
+ if (c != c_stone)
598
+ continue;
599
600
float altitude = y - water_level;
601
float height_mod = (altitude + 17.0f) / 2.5f;
0 commit comments