From 4d549f3407bf6af08ba8d4cd30c678ed7ce9a56c Mon Sep 17 00:00:00 2001 From: Rasmus Kromann-Larsen Date: Wed, 9 Sep 2026 11:59:36 +0200 Subject: [PATCH] Export party buffs in name order PartyTab:exportBuffs walked the name-keyed buffExports maps, and the nested otherEffects map, with pairs(), so the text inside each element came out in string-hash order and differed between runs of the same build. Use pairsSortByKey for both walks. --- src/Classes/PartyTab.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Classes/PartyTab.lua b/src/Classes/PartyTab.lua index da9af814916..5664a7ffafd 100644 --- a/src/Classes/PartyTab.lua +++ b/src/Classes/PartyTab.lua @@ -997,7 +997,7 @@ function PartyTabClass:exportBuffs(buffType) return self.buffExports[buffType].string end local buf = ((buffType == "Curse") and ("--- Curse Limit ---\n" .. tostring(self.buffExports["CurseLimit"]))) or "" - for buffName, buff in pairs(self.buffExports[buffType]) do + for buffName, buff in pairsSortByKey(self.buffExports[buffType]) do if buffName ~= "extraAura" or #buff.modList > 0 then if #buf > 0 then buf = buf.."\n" @@ -1014,7 +1014,7 @@ function PartyTabClass:exportBuffs(buffType) buf = buf.."\n"..tostring(buff.effectMult * 100) end if buffType == "Aura" and buffName == "otherEffects" then - for innerBuffName, innerBuff in pairs(buff) do + for innerBuffName, innerBuff in pairsSortByKey(buff) do for _, mod in ipairs(innerBuff.modList) do buf = buf.."\n"..innerBuffName.."|"..tostring(innerBuff.effectMult * 100).."|"..modLib.formatSourceMod(mod) end