diff options
author | Wuzzy <wuzzy2@mail.ru> | 2020-04-10 20:36:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 20:36:16 +0200 |
commit | aa3cf400e2ca4096517e926dbae5b6337b2f1876 (patch) | |
tree | d3e9ab73ace98667d4fe7d7c02bbb87880e9bc39 /src/mapgen/mapgen.cpp | |
parent | 35e778ee9ff2e0e9ab096eaf2d1a903c5eaa42b3 (diff) | |
download | minetest-aa3cf400e2ca4096517e926dbae5b6337b2f1876.tar.gz minetest-aa3cf400e2ca4096517e926dbae5b6337b2f1876.tar.bz2 minetest-aa3cf400e2ca4096517e926dbae5b6337b2f1876.zip |
Print error if invalid mapgen alias was detected (#9579)
Diffstat (limited to 'src/mapgen/mapgen.cpp')
-rw-r--r-- | src/mapgen/mapgen.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mapgen/mapgen.cpp b/src/mapgen/mapgen.cpp index 79c429ff6..6c426ba41 100644 --- a/src/mapgen/mapgen.cpp +++ b/src/mapgen/mapgen.cpp @@ -629,6 +629,13 @@ MapgenBasic::MapgenBasic(int mapgenid, MapgenParams *params, EmergeManager *emer // Lava falls back to water as both are suitable as cave liquids. if (c_lava_source == CONTENT_IGNORE) c_lava_source = c_water_source; + + if (c_stone == CONTENT_IGNORE) + errorstream << "Mapgen: Mapgen alias 'mapgen_stone' is invalid!" << std::endl; + if (c_water_source == CONTENT_IGNORE) + errorstream << "Mapgen: Mapgen alias 'mapgen_water_source' is invalid!" << std::endl; + if (c_river_water_source == CONTENT_IGNORE) + warningstream << "Mapgen: Mapgen alias 'mapgen_river_water_source' is invalid!" << std::endl; } |