mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Clarify use of minetest.request_insecure_environment() (#9597)
This commit is contained in:
parent
f45ba78a72
commit
143a37e947
1 changed files with 5 additions and 5 deletions
|
@ -5413,8 +5413,8 @@ Misc.
|
|||
insecure functions if the calling mod has been listed as trusted in the
|
||||
`secure.trusted_mods` setting or security is disabled, otherwise returns
|
||||
`nil`.
|
||||
* Only works at init time and must be called from the mod's main scope (not
|
||||
from a function).
|
||||
* Only works at init time and must be called from the mod's main scope
|
||||
(ie: the init.lua of the mod, not from another Lua file or within a function).
|
||||
* **DO NOT ALLOW ANY OTHER MODS TO ACCESS THE RETURNED ENVIRONMENT, STORE
|
||||
IT IN A LOCAL VARIABLE!**
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue