Skip to content

Commit 8369b44

Browse files
authored
fix PartyTab Crash with thresholds (#8314)
1 parent 494718f commit 8369b44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Modules/ModTools.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function modLib.parseTags(line)
5959
if tag ~= "" then
6060
local tagName, tagValue = tag:match("^(%a+)=(.+)")
6161
if tagName then
62+
-- list of all the tag parts that should be numbers
63+
if ({threshold = true})[tagName] then
64+
tagValue = tonumber(tagValue)
65+
end
6266
tagSet[tagName] = tagValue == "true" and true or tagValue
6367
else
6468
ConPrintf("Error tag invalid: "..tag)

0 commit comments

Comments
 (0)