summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/lua.cpp')
-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()) {