mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Dungeons: Avoid generation in multiple liquid nodes and 'airlike'
Previously only 'mapgen water source' and 'mapgen river water source' were checked for. Games can use multiple liquid nodes defined for biomes, many of which will not be aliased to those 2 mapgen aliases, causing floating dungeons to generate in some liquids. Now we check for liquid drawtype instead, so can remove liquid nodes from dungeonparams. Also check for 'airlike' drawtype instead of 'CONTENT_AIR' to avoid generation in 'airlike' nodes in some rare situations. This will also be needed for when we add definable biome air nodes.
This commit is contained in:
parent
1156088db7
commit
861cfd8484
4 changed files with 9 additions and 20 deletions
|
@ -886,8 +886,6 @@ void MapgenBasic::generateDungeons(s16 max_stone_y,
|
|||
DungeonParams dp;
|
||||
|
||||
dp.seed = seed;
|
||||
dp.c_water = c_water_source;
|
||||
dp.c_river_water = c_river_water_source;
|
||||
|
||||
dp.only_in_ground = true;
|
||||
dp.corridor_len_min = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue