mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
MgOre: Fix invalid field polymorphism (#10846)
This commit is contained in:
parent
8ff209c412
commit
4fcd000e20
2 changed files with 21 additions and 28 deletions
|
@ -1335,7 +1335,7 @@ int ModApiMapgen::l_register_ore(lua_State *L)
|
|||
lua_getfield(L, index, "noise_params");
|
||||
if (read_noiseparams(L, -1, &ore->np)) {
|
||||
ore->flags |= OREFLAG_USE_NOISE;
|
||||
} else if (ore->NEEDS_NOISE) {
|
||||
} else if (ore->needs_noise) {
|
||||
errorstream << "register_ore: specified ore type requires valid "
|
||||
"'noise_params' parameter" << std::endl;
|
||||
delete ore;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue