Skip to content

Commit ed8ec10

Browse files
committed
Remove enchantId param from UpdateCombatQueue
* Only the icon is necessary to update the visual representation
1 parent 00c6d5d commit ed8ec10

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

code/GM_CombatQueue.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function me.AddToQueue(itemId, enchantId, runeAbilityId, slotId)
7979
mod.logger.LogDebug(me.tag, "Added item with itemId " .. itemId .. " and enchantId " .. (enchantId or "nil") ..
8080
" in slotId " .. slotId .. " to combatQueueStore")
8181

82-
mod.gearBar.UpdateCombatQueue(itemId, enchantId, slotId)
82+
mod.gearBar.UpdateCombatQueue(itemId, slotId)
8383
mod.ticker.StartTickerCombatQueue()
8484
end
8585

@@ -107,7 +107,7 @@ function me.RemoveFromQueue(slotId)
107107
combatQueueStore[slotId] = nil
108108
mod.logger.LogDebug(me.tag, "Removed item with id " .. itemId .. " in slotId "
109109
.. slotId .. " from combatQueueStore")
110-
mod.gearBar.UpdateCombatQueue(nil, nil, slotId)
110+
mod.gearBar.UpdateCombatQueue(nil, slotId)
111111
end
112112

113113
--[[

gui/GM_GearBar.lua

+2-3
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,10 @@ end
321321
322322
@param {number} itemId
323323
The itemId to update the combatQueue for
324-
@param {number} enchantId
325324
@param {number} slotId
326325
The slotId to update the combatQueue for
327326
]]--
328-
function me.UpdateCombatQueue(itemId, enchantId, slotId)
327+
function me.UpdateCombatQueue(itemId, slotId)
329328
mod.logger.LogDebug(me.tag, "Updating combatqueues for slotId - " .. slotId)
330329

331330
for _, gearBar in pairs(mod.gearBarStorage.GetGearBars()) do
@@ -336,7 +335,7 @@ function me.UpdateCombatQueue(itemId, enchantId, slotId)
336335
local icon = gearSlots[i].combatQueueSlot.icon
337336

338337
if itemId then
339-
local bagNumber, bagPos = mod.itemManager.FindItemInBag(itemId, enchantId)
338+
local bagNumber, bagPos = mod.itemManager.FindItemInBag(itemId)
340339

341340
if bagNumber ~= nil and bagPos ~= nil then
342341
local itemInfo = C_Container.GetContainerItemInfo(bagNumber, bagPos)

0 commit comments

Comments
 (0)