mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Mapgen: Optimize biomemap creation by combining with generateBiomes
This commit is contained in:
parent
d24f384174
commit
d4457ef420
6 changed files with 18 additions and 11 deletions
|
@ -250,10 +250,7 @@ void MapgenValleys::makeChunk(BlockMakeData *data)
|
|||
// Generate base terrain with initial heightmaps
|
||||
s16 stone_surface_max_y = generateTerrain();
|
||||
|
||||
// Build biomemap
|
||||
m_bgen->getBiomes(heightmap);
|
||||
|
||||
// Place biome-specific nodes
|
||||
// Place biome-specific nodes and build biomemap
|
||||
MgStoneType stone_type = generateBiomes();
|
||||
|
||||
// Cave creation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue