mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Reduce ore noise_parms error to deprecation warning (#10921)
Fixes #10914
This commit is contained in:
parent
0f74c7a977
commit
fbb9ef3818
1 changed files with 2 additions and 4 deletions
|
@ -1336,10 +1336,8 @@ int ModApiMapgen::l_register_ore(lua_State *L)
|
|||
if (read_noiseparams(L, -1, &ore->np)) {
|
||||
ore->flags |= OREFLAG_USE_NOISE;
|
||||
} else if (ore->needs_noise) {
|
||||
errorstream << "register_ore: specified ore type requires valid "
|
||||
"'noise_params' parameter" << std::endl;
|
||||
delete ore;
|
||||
return 0;
|
||||
log_deprecated(L,
|
||||
"register_ore: ore type requires 'noise_params' but it is not specified, falling back to defaults");
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue