mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-19 19:25:18 +02:00
Dungeons: Move duplicated y limit checks to generation function
This commit is contained in:
@@ -313,8 +313,7 @@ void MapgenCarpathian::makeChunk(BlockMakeData *data)
|
||||
m_emerge->oremgr->placeAllOres(this, blockseed, node_min, node_max);
|
||||
|
||||
// Generate dungeons
|
||||
if ((flags & MG_DUNGEONS) && full_node_min.Y >= dungeon_ymin &&
|
||||
full_node_max.Y <= dungeon_ymax)
|
||||
if (flags & MG_DUNGEONS)
|
||||
generateDungeons(stone_surface_max_y);
|
||||
|
||||
// Generate the registered decorations
|
||||
|
Reference in New Issue
Block a user