forked from Mirrorlandia_minetest/minetest
Clarify use of minetest.request_insecure_environment() (#9597)
This commit is contained in:
parent
f45ba78a72
commit
143a37e947
@ -5413,8 +5413,8 @@ Misc.
|
|||||||
insecure functions if the calling mod has been listed as trusted in the
|
insecure functions if the calling mod has been listed as trusted in the
|
||||||
`secure.trusted_mods` setting or security is disabled, otherwise returns
|
`secure.trusted_mods` setting or security is disabled, otherwise returns
|
||||||
`nil`.
|
`nil`.
|
||||||
* Only works at init time and must be called from the mod's main scope (not
|
* Only works at init time and must be called from the mod's main scope
|
||||||
from a function).
|
(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
|
* **DO NOT ALLOW ANY OTHER MODS TO ACCESS THE RETURNED ENVIRONMENT, STORE
|
||||||
IT IN A LOCAL VARIABLE!**
|
IT IN A LOCAL VARIABLE!**
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user