diff options
author | kwolekr <kwolekr@minetest.net> | 2014-02-09 12:38:50 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-02-09 12:44:31 -0500 |
commit | 2a01050a0cf0826f25240e2cb407535394ee360f (patch) | |
tree | bb6d3fd3b27be094db7e885adc5ac25dc5e45139 /src/script/lua_api/l_mapgen.cpp | |
parent | 57710520dca6bce175a6be48989e0a4689b1404e (diff) | |
download | minetest-2a01050a0cf0826f25240e2cb407535394ee360f.tar.gz minetest-2a01050a0cf0826f25240e2cb407535394ee360f.tar.bz2 minetest-2a01050a0cf0826f25240e2cb407535394ee360f.zip |
Add capability to read table flag fields from Lua API
Diffstat (limited to 'src/script/lua_api/l_mapgen.cpp')
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index 4c6bca74e..2e6d848b3 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -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); |