diff options
author | rubenwardy <rw@rubenwardy.com> | 2021-02-06 12:46:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 13:46:45 +0100 |
commit | fbb9ef3818b17894843f967c0c23b5d57a1e3771 (patch) | |
tree | 02b004339593187519881e01f79872d02c2982ca | |
parent | 0f74c7a977c412a81890926548e2a5c8dae5f6eb (diff) | |
download | minetest-fbb9ef3818b17894843f967c0c23b5d57a1e3771.tar.gz minetest-fbb9ef3818b17894843f967c0c23b5d57a1e3771.tar.bz2 minetest-fbb9ef3818b17894843f967c0c23b5d57a1e3771.zip |
Reduce ore noise_parms error to deprecation warning (#10921)
Fixes #10914
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 183f20540..12a497b1e 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -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); |