diff options
author | paramat <mat.gregory@virginmedia.com> | 2017-02-04 06:03:04 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2017-02-04 07:21:23 +0000 |
commit | 047168ca839677bd967d6186e22f5476e2264709 (patch) | |
tree | a94ad05f8b57fa67a7bc930dfd656a79a27ff6ad | |
parent | 8e4c11406e20a29ad659b99c840b5281941ae585 (diff) | |
download | minetest-047168ca839677bd967d6186e22f5476e2264709.tar.gz minetest-047168ca839677bd967d6186e22f5476e2264709.tar.bz2 minetest-047168ca839677bd967d6186e22f5476e2264709.zip |
Mgv6: Add fallback node for gravel
Gravel now falls back to stone.
Gravel is not a particularly fundamental node, allowing it to fall back
to stone frees up subgames from having to include a gravel node.
Non-blob-ore gravel is only present in mgv6 as extremely rare 'gravel
biomes'.
-rw-r--r-- | src/mapgen_v6.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index d4e3fa8d7..807bbe751 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -99,6 +99,8 @@ MapgenV6::MapgenV6(int mapgenid, MapgenV6Params *params, EmergeManager *emerge) c_snowblock = ndef->getId("mapgen_snowblock"); c_ice = ndef->getId("mapgen_ice"); + if (c_gravel == CONTENT_IGNORE) + c_gravel = c_stone; if (c_desert_stone == CONTENT_IGNORE) c_desert_stone = c_stone; if (c_desert_sand == CONTENT_IGNORE) |