From 02c5bd1a82aecf348ca97cdcfaaab30e1c31c4da Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 11 Apr 2025 00:32:37 +0500 Subject: fix: booleans weren't properly parsed from json --- bot/src/commands/lua.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index d4d1781..2910fdf 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -128,6 +128,8 @@ namespace bot::command::lua { return sol::make_object(*state, j.get()); case nlohmann::json::value_t::number_float: return sol::make_object(*state, j.get()); + case nlohmann::json::value_t::boolean: + return sol::make_object(*state, j.get()); case nlohmann::json::value_t::array: { sol::table a = state->create_table(); -- cgit v1.2.3