1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Require minetest.request_http_api to be called from the mod's main scope

Fixes #3764
This commit is contained in:
Jeija 2016-02-25 10:22:54 +01:00 committed by est31
parent 7bcbc0105b
commit 1100a5d614
2 changed files with 20 additions and 3 deletions

View file

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