summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2021-02-06 12:46:45 +0000
committerGitHub <noreply@github.com>2021-02-06 13:46:45 +0100
commitfbb9ef3818b17894843f967c0c23b5d57a1e3771 (patch)
tree02b004339593187519881e01f79872d02c2982ca /src
parent0f74c7a977c412a81890926548e2a5c8dae5f6eb (diff)
downloadminetest-fbb9ef3818b17894843f967c0c23b5d57a1e3771.tar.gz
minetest-fbb9ef3818b17894843f967c0c23b5d57a1e3771.tar.bz2
minetest-fbb9ef3818b17894843f967c0c23b5d57a1e3771.zip
Reduce ore noise_parms error to deprecation warning (#10921)
Fixes #10914
Diffstat (limited to 'src')
-rw-r--r--src/script/lua_api/l_mapgen.cpp6
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);