Skip to content

Commit

Permalink
enabled coroutine lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Mar 20, 2021
1 parent 37ee6e1 commit 902c2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_api/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 902c2bf

Please sign in to comment.