Skip to content

Commit

Permalink
Merge pull request #152 from nezorflame/master
Browse files Browse the repository at this point in the history
Fix addon for latest Era patch
  • Loading branch information
cdmichaelb authored Oct 9, 2023
2 parents f97b794 + cdc6cb9 commit 501f4fa
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
2 changes: 1 addition & 1 deletion Libraries/MC2ItemStatsLib/MC2ItemStatsLib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function Addon.ItemStatsLib._Stats:setToBagItem(bag, slot)
local stats = Addon.TooltipLib:StatsForBagItem(bag, slot)
self:setTooltipStats(stats)

local link = GetContainerItemLink(bag, slot)
local link = C_Container.GetContainerItemLink(bag, slot)
self:setInfoFromLink(link)
end

Expand Down
24 changes: 0 additions & 24 deletions Libraries/Vanilla-C_Container.lua

This file was deleted.

8 changes: 0 additions & 8 deletions Libraries/Vanilla-C_Minimap.lua

This file was deleted.

2 changes: 1 addition & 1 deletion OutfitterBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ function Outfitter.OutfitBar:GetCursorTexture()
local vItemLink = C_Container.GetContainerItemLink(vBagIndex, vBagSlotIndex)

if vItemLink == vParam2 then
local itemInfo = C_Containeer.GetContainerItemInfo(vBagIndex, vBagSlotIndex)
local itemInfo = C_Container.GetContainerItemInfo(vBagIndex, vBagSlotIndex)
local vTexture = itemInfo.iconFileID

return vTexture
Expand Down
3 changes: 2 additions & 1 deletion OutfitterInventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ function Outfitter:FindNextCooldownItem(pItemCodes, pIgnoreSwapCooldown)
local vStart, vDuration, vEnabled

if vItemInfo.Location.BagIndex then
vStart, vDuration, vEnabled = GetContainerItemCooldown(vItemInfo.Location.BagIndex, vItemInfo.Location.BagSlotIndex)
vStart, vDuration, vEnabled = C_Container.GetContainerItemCooldown(vItemInfo.Location.BagIndex,
vItemInfo.Location.BagSlotIndex)
elseif vItemInfo.Location.SlotID then
vStart, vDuration, vEnabled = GetInventoryItemCooldown("player", vItemInfo.Location.SlotID)
end
Expand Down
2 changes: 1 addition & 1 deletion OutfitterOutfits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ end
function Outfitter:DumpEMOutfitLocations(pName)
local equipmentSetID = C_EquipmentSet.GetEquipmentSetID(pName)
local vLocations = C_EquipmentSet.GetItemLocations(equipmentSetID)
local vIgnoreSlots = GetEquipmentSetIgnoreSlots(pName)
local vIgnoreSlots = C_EquipmentSet.GetIgnoredSlots(pName)
self:DebugTable(vLocations, "Locations")
self:DebugTable(vIgnoreSlots, "IgnoreSlots")

Expand Down

0 comments on commit 501f4fa

Please sign in to comment.