fix PartyTab Crash with thresholds (#8314)

This commit is contained in:
Regisle
2024-09-22 16:46:45 +09:30
committed by GitHub
parent 494718f8e0
commit 8369b448f6

View File

@@ -59,6 +59,10 @@ function modLib.parseTags(line)
if tag ~= "" then
local tagName, tagValue = tag:match("^(%a+)=(.+)")
if tagName then
-- list of all the tag parts that should be numbers
if ({threshold = true})[tagName] then
tagValue = tonumber(tagValue)
end
tagSet[tagName] = tagValue == "true" and true or tagValue
else
ConPrintf("Error tag invalid: "..tag)