mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Reduce ore noise_parms error to deprecation warning (#10921)
Fixes #10914
This commit is contained in:
parent
0f74c7a977
commit
fbb9ef3818
@ -1336,10 +1336,8 @@ int ModApiMapgen::l_register_ore(lua_State *L)
|
|||||||
if (read_noiseparams(L, -1, &ore->np)) {
|
if (read_noiseparams(L, -1, &ore->np)) {
|
||||||
ore->flags |= OREFLAG_USE_NOISE;
|
ore->flags |= OREFLAG_USE_NOISE;
|
||||||
} else if (ore->needs_noise) {
|
} else if (ore->needs_noise) {
|
||||||
errorstream << "register_ore: specified ore type requires valid "
|
log_deprecated(L,
|
||||||
"'noise_params' parameter" << std::endl;
|
"register_ore: ore type requires 'noise_params' but it is not specified, falling back to defaults");
|
||||||
delete ore;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user