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_v7.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_v7.cpp')
-rw-r--r-- | src/mapgen/mapgen_v7.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapgen/mapgen_v7.cpp b/src/mapgen/mapgen_v7.cpp index e93dc9140..a1fe25ab6 100644 --- a/src/mapgen/mapgen_v7.cpp +++ b/src/mapgen/mapgen_v7.cpp @@ -377,7 +377,8 @@ void MapgenV7::makeChunk(BlockMakeData *data) } // 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); // Generate dungeons if (flags & MG_DUNGEONS) |