mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Print error if invalid mapgen alias was detected (#9579)
This commit is contained in:
parent
35e778ee9f
commit
aa3cf400e2
3 changed files with 39 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue