mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add capability to read table flag fields from Lua API
This commit is contained in:
parent
57710520dc
commit
2a01050a0c
7 changed files with 83 additions and 3 deletions
|
@ -456,7 +456,6 @@ int ModApiMapgen::l_register_ore(lua_State *L)
|
|||
ore->height_max = getintfield_default(L, index, "height_max", 0);
|
||||
ore->flags = getflagsfield(L, index, "flags", flagdesc_ore, NULL);
|
||||
ore->nthresh = getfloatfield_default(L, index, "noise_threshhold", 0.);
|
||||
|
||||
lua_getfield(L, index, "wherein");
|
||||
if (lua_istable(L, -1)) {
|
||||
int i = lua_gettop(L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue