diff options
author | sfan5 <sfan5@live.de> | 2019-11-09 11:00:19 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-11-11 14:06:48 +0100 |
commit | 2c4cf508a9b94a76ce2ca7c7317258471a41c51d (patch) | |
tree | db024e8374e7e74809410b9b998d38042b187811 /doc | |
parent | 3f271564e08716cfeb4a966f4291524b0fac05d3 (diff) | |
download | minetest-2c4cf508a9b94a76ce2ca7c7317258471a41c51d.tar.gz minetest-2c4cf508a9b94a76ce2ca7c7317258471a41c51d.tar.bz2 minetest-2c4cf508a9b94a76ce2ca7c7317258471a41c51d.zip |
[CSM] Implement minetest.get_csm_restrictions()
fixes #8068
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client_lua_api.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt index 78cd2ead2..a7e928f56 100644 --- a/doc/client_lua_api.txt +++ b/doc/client_lua_api.txt @@ -649,6 +649,11 @@ Minetest namespace reference * `minetest.sha1(data, [raw])`: returns the sha1 hash of data * `data`: string of data to hash * `raw`: return raw bytes instead of hex digits, default: false +* `minetest.get_csm_restrictions()`: returns a table of `Flags` indicating the + restrictions applied to the current mod. + * If a flag in this table is set to true, the feature is RESTRICTED. + * Possible flags: `load_client_mods`, `chat_messages`, `read_itemdefs`, + `read_nodedefs`, `lookup_nodes`, `read_playerinfo` ### Logging * `minetest.debug(...)` |