Skip to content

Commit 143a37e

Browse files
authoredApr 6, 2020
Clarify use of minetest.request_insecure_environment() (#9597)
1 parent f45ba78 commit 143a37e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎doc/lua_api.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -5413,8 +5413,8 @@ Misc.
54135413
insecure functions if the calling mod has been listed as trusted in the
54145414
`secure.trusted_mods` setting or security is disabled, otherwise returns
54155415
`nil`.
5416-
* Only works at init time and must be called from the mod's main scope (not
5417-
from a function).
5416+
* Only works at init time and must be called from the mod's main scope
5417+
(ie: the init.lua of the mod, not from another Lua file or within a function).
54185418
* **DO NOT ALLOW ANY OTHER MODS TO ACCESS THE RETURNED ENVIRONMENT, STORE
54195419
IT IN A LOCAL VARIABLE!**
54205420

@@ -6002,7 +6002,7 @@ object you are working with still exists.
60026002
* `sky_color`: A table containing the following values, alpha is ignored:
60036003
* `day_sky`: ColorSpec, for the top half of the `"regular"`
60046004
sky during the day. (default: `#8cbafa`)
6005-
* `day_horizon`: ColorSpec, for the bottom half of the
6005+
* `day_horizon`: ColorSpec, for the bottom half of the
60066006
`"regular"` sky during the day. (default: `#9bc1f0`)
60076007
* `dawn_sky`: ColorSpec, for the top half of the `"regular"`
60086008
sky during dawn/sunset. (default: `#b4bafa`)
@@ -6020,7 +6020,7 @@ object you are working with still exists.
60206020
sky during the night. (default: `#4090ff`)
60216021
The resulting sky color will be a dark version of the ColorSpec.
60226022
Warning: The darkening of the ColorSpec is subject to change.
6023-
* `indoors`: ColorSpec, for when you're either indoors or
6023+
* `indoors`: ColorSpec, for when you're either indoors or
60246024
underground. Only applies to the `"regular"` sky.
60256025
(default: `#646464`)
60266026
* `fog_sun_tint`: ColorSpec, changes the fog tinting for the sun
@@ -6064,7 +6064,7 @@ object you are working with still exists.
60646064
* `parameters` is a table with the following optional fields:
60656065
* `visible`: Boolean for whether the stars are visible.
60666066
(default: `true`)
6067-
* `count`: Integer number to set the number of stars in
6067+
* `count`: Integer number to set the number of stars in
60686068
the skybox. Only applies to `"skybox"` and `"regular"` sky types.
60696069
(default: `1000`)
60706070
* `star_color`: ColorSpec, sets the colors of the stars,

0 commit comments

Comments
 (0)