Talk:minetest.set mapgen params

From Minetest Developer Wiki
Jump to: navigation, search

Flags Conflict

lua_api.txt states that flags has the same syntax as in minetest.conf, and that adding a "no" prefix clears a flag. The Mapgen Parameters#minetest.set_mapgen_params() section, on the other hand, also mentioned a flagmask parameter and stated:

The flags field is a comma-delimited string of flag names as described in the previous section that are to be SET; the flagmask field is a comma-delimited string of flag names that are to be MODIFIED. In other words, to set a flag, it must be present in both flags and flagmask fields, and to unset a flag, it must be present in the flagmask field but not in the flags field.

If a flag is present in flags but not in flagmask, the result is undefined. I'm not sure which is true, so I went with what lua_api.txt (HEAD) said. Confirmation or fixes appreciated.

--Prestidigitator (talk) 01:28, 7 July 2014 (MSK)
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox