Skip to content
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

Document settings API behavior regarding default values #14247

Merged
merged 3 commits into from Jan 13, 2024

Conversation

grorp
Copy link
Member

@grorp grorp commented Jan 12, 2024

The behavior of the Lua Settings API regarding default values is undocumented and confusing.

This PR fixes #11736. See also: #6711, #8558

To do

This PR is a Ready for Review.

How to test

Read.

doc/lua_api.md Outdated Show resolved Hide resolved
@SmallJoker
Copy link
Member

LGTM 👍

@grorp grorp merged commit 6b9250e into minetest:master Jan 13, 2024
@grorp grorp deleted the setting-default-docs branch January 13, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No mention in documentation that minetest.settings:get() returns nil if the default value was not changed
3 participants