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:
parent
414f0275cf
commit
c517215bcf
3 changed files with 23 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue