Fixes #9086: Tooltip was being passed multiple values, failing the font lookup (#9087)

This commit is contained in:
Wires77
2025-10-30 20:38:03 -05:00
committed by GitHub
parent 70804a24e7
commit 5f1f86376b

View File

@@ -746,7 +746,7 @@ holding Shift will put it in the second.]])
tooltip:AddLine(14, maxLine)
else
local start = 1
tooltip:AddLine(14, minLine:gsub("%d[%d%.]*", function(min)
tooltip:AddLine(14, (minLine:gsub("%d[%d%.]*", function(min)
local s, e, max = maxLine:find("(%d[%d%.]*)", start)
start = e + 1
if min == max then
@@ -754,7 +754,7 @@ holding Shift will put it in the second.]])
else
return "("..min.."-"..max..")"
end
end))
end)))
end
end
tooltip:AddLine(16, "Level: "..minMod.level.." to "..maxMod.level)