1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix MapgenV6::generateCaves possible division by 0 and misc. cosmetic fixes

This commit is contained in:
kwolekr 2013-03-30 21:24:37 -04:00
parent 414f0275cf
commit c517215bcf
3 changed files with 23 additions and 16 deletions

View file

@ -727,7 +727,7 @@ static int l_register_ore(lua_State *L)
if (ore->clust_scarcity <= 0 || ore->clust_num_ores <= 0) {
errorstream << "register_ore: clust_scarcity and clust_num_ores"
"must be greater than 0";
" must be greater than 0" << std::endl;
delete ore;
return 0;
}