mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Dungeons: Use biome 'node_stone' if normal stone types not detected
Construct dungeons from the node defined as biome 'node_stone' if 'mapgen_stone', 'mapgen_desert_stone' and 'mapgen_sandstone' are not detected. Feature long-intended by kwolekr/hmmmm and present in code as a TODO.
This commit is contained in:
parent
238d752fa3
commit
b20d01a3f1
8 changed files with 61 additions and 22 deletions
|
@ -236,7 +236,9 @@ void MapgenValleys::makeChunk(BlockMakeData *data)
|
|||
updateHeightmap(node_min, node_max);
|
||||
|
||||
// Place biome-specific nodes and build biomemap
|
||||
MgStoneType stone_type = generateBiomes(water_level - 1);
|
||||
MgStoneType mgstone_type;
|
||||
content_t biome_stone;
|
||||
generateBiomes(&mgstone_type, &biome_stone, water_level - 1);
|
||||
|
||||
// Cave creation.
|
||||
if (flags & MG_CAVES)
|
||||
|
@ -244,7 +246,7 @@ void MapgenValleys::makeChunk(BlockMakeData *data)
|
|||
|
||||
// Dungeon creation
|
||||
if ((flags & MG_DUNGEONS) && node_max.Y < 50)
|
||||
generateDungeons(stone_surface_max_y, stone_type);
|
||||
generateDungeons(stone_surface_max_y, mgstone_type, biome_stone);
|
||||
|
||||
// Generate the registered decorations
|
||||
if (flags & MG_DECORATIONS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue