Yet Another Fix to Player Name Size Limit

This commit is contained in:
GreenComfyTea
2022-08-02 09:15:37 +03:00
parent cad4e653fd
commit 36bc2d0b25

View File

@@ -46,7 +46,12 @@ function drawing.limit_text_size(text, size_limit)
if text_width < size_limit then
break
else
local old_limited_text = limited_text;
limited_text = unicode_helpers.sub(limited_text, 1, -5) .. "...";
if limited_text == old_limited_text then
break
end
end
end