We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99143f4 commit f4ca830Copy full SHA for f4ca830
src/mapgen/mapgen.cpp
@@ -765,15 +765,12 @@ void MapgenBasic::generateBiomes()
765
// If no stone surface was detected in this mapchunk column the biomemap
766
// will be empty for this (x, z) position. Add the currently active
767
// biome to the biomemap, or if biome is NULL calculate it for this
768
- // position.
+ // position and add it.
769
if (biomemap[index] == BIOME_NONE) {
770
- if (biome) {
771
- biomemap[index] = biome->index;
772
- } else {
773
- biome =
774
- biomegen->getBiomeAtIndex(index, v3s16(x, node_min.Y, z));
775
776
- }
+ if (!biome)
+ biome = biomegen->getBiomeAtIndex(
+ index, v3s16(x, node_min.Y, z));
+ biomemap[index] = biome->index;
777
}
778
779
0 commit comments