mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 10:45:27 +02:00
Biome generation: Fix layers of 'filler' nodes at biome y limits
Error was exposed by commit a1389c3865
'nplaced' was not set to U16_MAX when biome 'stone' was placed, so when
biome was recalculated in a column of stone, the 'nplaced' value
caused a few remaining filler nodes to be placed.
Occurs when the lower biome has a deeper depth of 'top' plus 'filler'
than the upper biome.
This commit is contained in:
@@ -722,6 +722,7 @@ void MapgenBasic::generateBiomes(MgStoneType *mgstone_type,
|
|||||||
nplaced++;
|
nplaced++;
|
||||||
} else {
|
} else {
|
||||||
vm->m_data[vi] = MapNode(biome->c_stone);
|
vm->m_data[vi] = MapNode(biome->c_stone);
|
||||||
|
nplaced = U16_MAX; // Disable top/filler placement
|
||||||
}
|
}
|
||||||
|
|
||||||
air_above = false;
|
air_above = false;
|
||||||
|
Reference in New Issue
Block a user