Update doc/lua_api.md

Co-authored-by: red-001 <red-001@outlook.ie>
This commit is contained in:
DragonWrangler1 2024-09-18 07:11:54 -07:00 committed by GitHub
parent 5ae569881f
commit b6fce237cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7772,7 +7772,7 @@ of the `${k}` syntax in formspecs is not deprecated.
* The range for the value is system-dependent (usually 32 bits).
The value will be converted into a string when stored.
* `get_float(key)`: Returns `0` if key not present.
* `set_bool(key, value)` Can be set to either `true` or `false`. Any other value crashes it.
* `set_bool(key, value)` Can be set to either `true` or `false`. Any other value is invalid and will raise an error.
* `get_bool(key)`: Gives an error if key not present.
* `get_keys()`: returns a list of all keys in the metadata.
* `to_table()`: