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

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