From 406e08a3a1f42a014affc35bb399a32ff9cbff96 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 2 Jul 2025 15:25:13 +0500 Subject: feat: math lib for remote lua scripts --- bot/src/commands/lua.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bot/src/commands/lua.cpp') 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 state = std::make_shared(); - 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()) { -- cgit v1.2.3