mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
MgV5/6/7: Generate dungeons above water level
Use/add stone_surface_max_y to speed-optimise/guide dungeon generation MgV7: Don't let mountain terrain chop dungeons at mapchunk borders Make mountain terrain update stone_surface_max_y for caves in mountains
This commit is contained in:
parent
938a3f2976
commit
7452d5399b
6 changed files with 25 additions and 15 deletions
|
@ -500,7 +500,7 @@ void MapgenV6::makeChunk(BlockMakeData *data)
|
|||
}
|
||||
|
||||
// Add dungeons
|
||||
if (flags & MG_DUNGEONS) {
|
||||
if ((flags & MG_DUNGEONS) && (stone_surface_max_y >= node_min.Y)) {
|
||||
DungeonParams dp;
|
||||
|
||||
dp.np_rarity = nparams_dungeon_rarity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue