From ac8a9f9502efb6d0dad4c6a0b7937c1378dc398d Mon Sep 17 00:00:00 2001 From: rvenson Date: Thu, 5 Oct 2023 12:29:26 -0300 Subject: [PATCH] Update range values of meta set functions in the documentation --- doc/lua_api.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/lua_api.md b/doc/lua_api.md index 9fe54893c..6fd3cb4f3 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -7277,8 +7277,12 @@ of the `${k}` syntax in formspecs is not deprecated. * `set_string(key, value)`: Value of `""` will delete the key. * `get_string(key)`: Returns `""` if key not present. * `set_int(key, value)` + * The range for the value is system-dependent (usually 32 bits). + The value will be converted into a string when stored. * `get_int(key)`: Returns `0` if key not present. * `set_float(key, value)` + * 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. * `get_keys()`: returns a list of all keys in the metadata. * `to_table()`: