From f6b63e676d43a98a0a2147b4923be2a36b92b518 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Apr 2025 14:15:51 +0200 Subject: [PATCH] eqcompare: precache tooltip side table --- modules/eqcompare.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/eqcompare.lua b/modules/eqcompare.lua index ce08eac4..2cc8b90b 100644 --- a/modules/eqcompare.lua +++ b/modules/eqcompare.lua @@ -1,4 +1,5 @@ pfUI:RegisterModule("eqcompare", "vanilla", function () + local sides = { "Left", "Right" } local loc = pfUI.cache["locale"] for key, value in pairs(L["itemtypes"]) do setglobal(key, value) end INVTYPE_WEAPON_OTHER = INVTYPE_WEAPON.."_other" @@ -7,7 +8,6 @@ pfUI:RegisterModule("eqcompare", "vanilla", function () local function AddHeader(tooltip) local name = tooltip:GetName() - local sides = { "Left", "Right" } -- shift all entries one line down for i=tooltip:NumLines(), 1, -1 do