Skip to content

Commit fbb9ef3

Browse files
authoredFeb 6, 2021
Reduce ore noise_parms error to deprecation warning (#10921)
Fixes #10914
1 parent 0f74c7a commit fbb9ef3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎src/script/lua_api/l_mapgen.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1336,10 +1336,8 @@ int ModApiMapgen::l_register_ore(lua_State *L)
13361336
if (read_noiseparams(L, -1, &ore->np)) {
13371337
ore->flags |= OREFLAG_USE_NOISE;
13381338
} else if (ore->needs_noise) {
1339-
errorstream << "register_ore: specified ore type requires valid "
1340-
"'noise_params' parameter" << std::endl;
1341-
delete ore;
1342-
return 0;
1339+
log_deprecated(L,
1340+
"register_ore: ore type requires 'noise_params' but it is not specified, falling back to defaults");
13431341
}
13441342
lua_pop(L, 1);
13451343

0 commit comments

Comments
 (0)
Please sign in to comment.