diff options
author | Paramat <paramat@users.noreply.github.com> | 2020-09-03 01:28:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 01:28:40 +0100 |
commit | 4ba5046308d6bdf7b38394770c6f82b6927393f2 (patch) | |
tree | 835812e435c2bfbb3656ad0b6226af3e979718ae /src/mapgen/mapgen_v6.cpp | |
parent | 74e22b72e1fc577d05ea703aed4bfa8c1e1f0599 (diff) | |
download | minetest-4ba5046308d6bdf7b38394770c6f82b6927393f2.tar.gz minetest-4ba5046308d6bdf7b38394770c6f82b6927393f2.tar.bz2 minetest-4ba5046308d6bdf7b38394770c6f82b6927393f2.zip |
Add 'ores' global mapgen flag (#10276)
Diffstat (limited to 'src/mapgen/mapgen_v6.cpp')
-rw-r--r-- | src/mapgen/mapgen_v6.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapgen/mapgen_v6.cpp b/src/mapgen/mapgen_v6.cpp index e9692246c..8bea5eb69 100644 --- a/src/mapgen/mapgen_v6.cpp +++ b/src/mapgen/mapgen_v6.cpp @@ -652,7 +652,8 @@ void MapgenV6::makeChunk(BlockMakeData *data) m_emerge->decomgr->placeAllDecos(this, blockseed, node_min, node_max); // Generate the registered ores - m_emerge->oremgr->placeAllOres(this, blockseed, node_min, node_max); + if (flags & MG_ORES) + m_emerge->oremgr->placeAllOres(this, blockseed, node_min, node_max); // Calculate lighting if (flags & MG_LIGHT) |