diff --git a/doc/lua_api.md b/doc/lua_api.md index 432c720b9..e3829aba8 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -6572,7 +6572,6 @@ Class instances that can be transferred between environments: Functions: * Standalone helpers such as logging, filesystem, encoding, hashing or compression APIs -* `minetest.request_insecure_environment` (same restrictions apply) Variables: * `minetest.settings` @@ -6641,7 +6640,6 @@ Classes: Functions: * Standalone helpers such as logging, filesystem, encoding, hashing or compression APIs -* `minetest.request_insecure_environment` (same restrictions apply) * `minetest.get_biome_id`, `get_biome_name`, `get_heat`, `get_humidity`, `get_biome_data`, `get_mapgen_object`, `get_mapgen_params`, `get_mapgen_edges`, `get_mapgen_setting`, `get_noiseparams`, `get_decoration_id` and more diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index 351d12205..d646e50a2 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -765,7 +765,7 @@ void ModApiUtil::InitializeAsync(lua_State *L, int top) API_FCT(get_dir_list); API_FCT(safe_file_write); - API_FCT(request_insecure_environment); + // no request_insecure_environment here! mod origins are not tracked securely here. API_FCT(encode_base64); API_FCT(decode_base64);