mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-11 08:00:01 +00:00
cleanup: use plain string.find where possible
This commit is contained in:
+1
-1
@@ -305,7 +305,7 @@ pfUI:RegisterModule("panel", function ()
|
||||
local tmpText = getglobal("repairToolTipTextLeft"..i)
|
||||
if (tmpText ~= nil) and (tmpText:GetText()) then
|
||||
local searchstr = string.gsub(DURABILITY_TEMPLATE, "%%[^%s]+", "(.+)")
|
||||
local _, _, lval, rval = string.find(tmpText:GetText(), searchstr)
|
||||
local _, _, lval, rval = string.find(tmpText:GetText(), searchstr, 1)
|
||||
if (lval and rval) then
|
||||
repPercent = math.floor(lval / rval * 100)
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user