diff options
| author | ilotterytea <iltsu@alright.party> | 2025-07-02 15:25:13 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-07-02 15:25:13 +0500 |
| commit | 406e08a3a1f42a014affc35bb399a32ff9cbff96 (patch) | |
| tree | add1f094fa4b99b0ccc02f96d7a28adee7f68d4f | |
| parent | bf8fcf46475da55c59c7993319e526c2c67affe4 (diff) | |
feat: math lib for remote lua scripts
| -rw-r--r-- | bot/src/commands/lua.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index b205f44..7c4f616 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -878,7 +878,8 @@ namespace bot::command::lua { // shared_ptr is unnecessary here, but my library needs it. std::shared_ptr<sol::state> state = std::make_shared<sol::state>(); - state->open_libraries(sol::lib::base, sol::lib::table, sol::lib::string); + state->open_libraries(sol::lib::base, sol::lib::table, sol::lib::string, + sol::lib::math); library::add_base_libraries(state); if (!lua_id.empty()) { |
