aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2016-02-25 10:22:54 +0100
committerest31 <MTest31@outlook.com>2016-03-03 22:42:00 +0100
commit1100a5d614c2eaf8e1c4f3adbc70b477e01a405c (patch)
tree0ae9d655072eb3acda8a8f2985cc086522a11a0f /doc
parent7bcbc0105b3e67b7e066be6fd77775769cffdd16 (diff)
downloadminetest-1100a5d614c2eaf8e1c4f3adbc70b477e01a405c.tar.gz
minetest-1100a5d614c2eaf8e1c4f3adbc70b477e01a405c.tar.bz2
minetest-1100a5d614c2eaf8e1c4f3adbc70b477e01a405c.zip
Require minetest.request_http_api to be called from the mod's main scope
Fixes #3764
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index aee3674d0..8c879c96e 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2337,7 +2337,7 @@ These functions return the leftover itemstack.
otherwise returns `nil`.
* The returned table contains the functions `fetch`, `fetch_async` and `fetch_async_get`
described below.
- * Only works at init time.
+ * Only works at init time and must be called from the mod's main scope (not from a function).
* Function only exists if minetest server was built with cURL support.
* **DO NOT ALLOW ANY OTHER MODS TO ACCESS THE RETURNED TABLE, STORE IT IN
A LOCAL VARIABLE!**