Skip to content

Commit

Permalink
Fixed a bug where equipment sets aren't showing up at times.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Dec 4, 2023
1 parent e0f1f28 commit 9150d2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion data/equipmentsets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ local equipmentSets = addon:NewModule('EquipmentSets')
---@class Events: AceModule
local events = addon:GetModule('Events')

---@class Debug: AceModule
local debug = addon:GetModule('Debug')

function equipmentSets:OnInitialize()
self.bagAndSlotToSet = {}
end
Expand All @@ -24,7 +27,7 @@ function equipmentSets:Update()
for _, setID in ipairs(sets) do
local setName = C_EquipmentSet.GetEquipmentSetInfo(setID)
local setLocations = C_EquipmentSet.GetItemLocations(setID)
for _, location in ipairs(setLocations) do
for _, location in pairs(setLocations) do
local _, bank, bags, _, slot, bag = EquipmentManager_UnpackLocation(location)
if (bank or bags) and slot ~= nil and bag ~= nil then
self.bagAndSlotToSet[bag] = self.bagAndSlotToSet[bag] or {}
Expand Down

0 comments on commit 9150d2f

Please sign in to comment.