Prototype: support booleans

This commit is contained in:
Nero 2022-06-17 23:41:07 +00:00
parent 8080b79b68
commit cceeebbe82

View File

@ -42,7 +42,7 @@ function Prototype:__tostring()
end
end
return "{"..r.."}"
elseif t=="number" then
elseif t=="number" or t=="boolean" then
return tostring(self)
elseif t=="string" then
return "\""..self:gsub("\\","\\\\"):gsub("\"","\\\"").."\""