from retail

This commit is contained in:
NoM0Re
2025-01-16 17:36:46 +01:00
parent 64a21e9030
commit b0854d38e0
5 changed files with 58 additions and 16 deletions
+6
View File
@@ -721,6 +721,12 @@ local function replaceNameDescFuncs(intable, data, subOption)
if(type(display) == "number") then
display = math.floor(display * 100) / 100;
else
local nullBytePos = display:find("\0", nil, true)
if nullBytePos then
display = display:sub(1, nullBytePos - 1)
end
if #display > 50 then
display = display:sub(1, 50) .. "..."
end