From 8369b448f6d0133cd2206fe0010a8e429962fa65 Mon Sep 17 00:00:00 2001 From: Regisle <49933620+Regisle@users.noreply.github.com> Date: Sun, 22 Sep 2024 16:46:45 +0930 Subject: [PATCH] fix PartyTab Crash with thresholds (#8314) --- src/Modules/ModTools.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Modules/ModTools.lua b/src/Modules/ModTools.lua index 834749797e..a7810bc9fb 100644 --- a/src/Modules/ModTools.lua +++ b/src/Modules/ModTools.lua @@ -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)