aboutsummaryrefslogtreecommitdiff
path: root/src/script/scripting_mainmenu.cpp
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-06-22 14:40:04 +0100
committerGitHub <noreply@github.com>2020-06-22 14:40:04 +0100
commit4cb18d4874126b384ad5faa1b10a208c8fdce4db (patch)
tree87d63f83706f7e0fca617a0d0b10ea7446d26125 /src/script/scripting_mainmenu.cpp
parente99415e0c5ae4a89907424d0f5f9f48ab94efbfa (diff)
downloadminetest-4cb18d4874126b384ad5faa1b10a208c8fdce4db.tar.gz
minetest-4cb18d4874126b384ad5faa1b10a208c8fdce4db.tar.bz2
minetest-4cb18d4874126b384ad5faa1b10a208c8fdce4db.zip
Fix HTTP API not being available in async mainmenu (#10086)
Diffstat (limited to 'src/script/scripting_mainmenu.cpp')
-rw-r--r--src/script/scripting_mainmenu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/scripting_mainmenu.cpp b/src/script/scripting_mainmenu.cpp
index 08858b1a5..0f672f917 100644
--- a/src/script/scripting_mainmenu.cpp
+++ b/src/script/scripting_mainmenu.cpp
@@ -73,6 +73,7 @@ void MainMenuScripting::initializeModApi(lua_State *L, int top)
asyncEngine.registerStateInitializer(registerLuaClasses);
asyncEngine.registerStateInitializer(ModApiMainMenu::InitializeAsync);
asyncEngine.registerStateInitializer(ModApiUtil::InitializeAsync);
+ asyncEngine.registerStateInitializer(ModApiHttp::InitializeAsync);
// Initialize async environment
//TODO possibly make number of async threads configurable