mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Make flag strings clear specified flag with 'no' prefix
Remove flagmask field from set_mapgen_params table Add small bits of needed documentation
This commit is contained in:
@@ -78,7 +78,8 @@ void ScriptApiEnv::environment_OnMapgenInit(MapgenParams *mgparams)
|
||||
lua_pushinteger(L, mgparams->water_level);
|
||||
lua_setfield(L, -2, "water_level");
|
||||
|
||||
std::string flagstr = writeFlagString(mgparams->flags, flagdesc_mapgen);
|
||||
std::string flagstr = writeFlagString(mgparams->flags,
|
||||
flagdesc_mapgen, (u32)-1);
|
||||
lua_pushstring(L, flagstr.c_str());
|
||||
lua_setfield(L, -2, "flags");
|
||||
|
||||
|
Reference in New Issue
Block a user