summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-07-02 15:25:13 +0500
committerilotterytea <iltsu@alright.party>2025-07-02 15:25:13 +0500
commit406e08a3a1f42a014affc35bb399a32ff9cbff96 (patch)
treeadd1f094fa4b99b0ccc02f96d7a28adee7f68d4f
parentbf8fcf46475da55c59c7993319e526c2c67affe4 (diff)
feat: math lib for remote lua scripts
-rw-r--r--bot/src/commands/lua.cpp3
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()) {