diff --git a/sonic-radiance.love/core/utils/table.lua b/sonic-radiance.love/core/utils/table.lua index 29b1122..f7d4f14 100644 --- a/sonic-radiance.love/core/utils/table.lua +++ b/sonic-radiance.love/core/utils/table.lua @@ -36,7 +36,19 @@ end function Table.toString(table) local string = "{" for key, value in pairs(table) do - string = string .. key .. ":" .. value .. "," + string = string .. key .. ":" + if (type(value) == "table") then + string = string .. Table.toString(value) + elseif type(value) == "boolean" then + if (value) then + string = string .. "true" + else + string = string .. "false" + end + else + string = string .. value + end + string = string .. "," end return string .. "}" end