Reduce ore noise_parms error to deprecation warning (#10921)

Fixes #10914
This commit is contained in:
rubenwardy 2021-02-06 12:46:45 +00:00 committed by GitHub
parent 0f74c7a977
commit fbb9ef3818
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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);