From 861cfd848473db6c36b0debb7152d98ca8017062 Mon Sep 17 00:00:00 2001 From: paramat Date: Mon, 12 Feb 2018 00:52:44 +0000 Subject: 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. --- src/mapgen/mapgen_v6.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mapgen/mapgen_v6.cpp') diff --git a/src/mapgen/mapgen_v6.cpp b/src/mapgen/mapgen_v6.cpp index 9a638bb53..92f131dcd 100644 --- a/src/mapgen/mapgen_v6.cpp +++ b/src/mapgen/mapgen_v6.cpp @@ -557,8 +557,6 @@ void MapgenV6::makeChunk(BlockMakeData *data) DungeonParams dp; dp.seed = seed; - dp.c_water = c_water_source; - dp.c_river_water = c_water_source; dp.only_in_ground = true; dp.corridor_len_min = 1; -- cgit v1.2.3