Add Ore generation flags, implement ore absolute height

This commit is contained in:
kwolekr
2013-03-31 20:02:03 -04:00
parent 35ed5198fe
commit 8d4b768297
6 changed files with 72 additions and 9 deletions

View File

@@ -336,6 +336,13 @@ void setboolfield(lua_State *L, int table,
lua_setfield(L, table, fieldname);
}
u32 getflagsfield(lua_State *L, int table,
const char *fieldname, FlagDesc *flagdesc) {
std::string flagstring;
flagstring = getstringfield_default(L, table, fieldname, "");
return readFlagString(flagstring, flagdesc);
}
/* minetest specific types */
MapNode readnode(lua_State *L, int index, INodeDefManager *ndef)