Fix Player Name Size Limit not working with UTF-8.

This commit is contained in:
GreenComfyTea
2022-07-20 10:59:39 +03:00
parent 65c4438ce6
commit f99886d1cd
5 changed files with 142 additions and 17 deletions

View File

@@ -66,9 +66,9 @@ function table_helpers.tostring(table)
local s = "{ \n";
for k,v in pairs(table) do
if type(k) ~= "number" then
k = '"' .. k .. '"';
k = "\"" .. k .. "\"";
end
s = s .. "\t["..k.."] = " .. table_helpers.tostring(v) .. ",\n";
s = s .. "\t[" .. k .."] = " .. table_helpers.tostring(v) .. ",\n";
end
return s .. "} \n";
else