-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix mapgen settings in minetest.conf being ignored #9737
Conversation
Thanks will test. |
Works as expected. So far. -- map_meta.txt: nomountains, ridges, floatlands, nocaverns
print(dump(minetest.get_mapgen_setting("mgv7_spflags")))
-- "nomountains, floatlands" (first join)
-- "nomountains, ridges, floatlands, nocaverns" (second join) This is so confusing but works at least better now. |
Note that this is a discouraged and sloppy way to set flags in .conf, because every flag should always be stated, with or without a preceding 'no'. The presence, or lack of, a preceding 'no' is what sets the value, not whether the flag is present. However, it seems that we now have the proper fallback logic that, if a flag is not stated, it is not altered from the default. |
Confirmed the bug in master, surprised and ashamed i did not notice this bug earlier. |
Tested PR, mapgen-specific flags set in .conf are now applied. |
broken since e8a8185
To do
This PR is a Ready for Review.
How to test
#9296 (comment)