From 902c2bf09a126e41f272f80eac634c1a14ddb624 Mon Sep 17 00:00:00 2001 From: Dregu Date: Sat, 20 Mar 2021 03:53:24 +0200 Subject: [PATCH] enabled coroutine lib --- src/game_api/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game_api/script.cpp b/src/game_api/script.cpp index 62165a2c4..ae8132f8a 100644 --- a/src/game_api/script.cpp +++ b/src/game_api/script.cpp @@ -235,7 +235,7 @@ SpelunkyScript::ScriptImpl::ScriptImpl(std::string script, std::string file, boo state.reset = (g_state->quest_flags & 1); state.quest_flags = g_state->quest_flags; - lua.open_libraries(sol::lib::math, sol::lib::base, sol::lib::string, sol::lib::table, sol::lib::package); + lua.open_libraries(sol::lib::math, sol::lib::base, sol::lib::string, sol::lib::table, sol::lib::coroutine, sol::lib::package); /// Table of strings where you should set some script metadata shown in the UI. /// - `meta.name` Script name