Clarify use of minetest.request_insecure_environment() (#9597)

This commit is contained in:
rubenwardy 2020-04-06 15:54:27 +01:00 committed by GitHub
parent f45ba78a72
commit 143a37e947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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!**