Skip to content

Commit

Permalink
Removed server call for getting free slot information
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Mar 19, 2024
1 parent d589ca0 commit 56b8cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/items.lua
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function items:BackpackLoadFunction()
local invid = C_Container.ContainerIDToInventoryID(bagid)
local baglink = GetInventoryItemLink("player", invid)
if baglink ~= nil then
local class, subclass = select(12, GetItemInfo(baglink)) --[[@as number]]
local class, subclass = select(6, GetItemInfoInstant(baglink)) --[[@as number]]
name = GetItemSubClassInfo(class, subclass)
extraSlotInfo.emptySlots[name] = extraSlotInfo.emptySlots[name] or 0
extraSlotInfo.emptySlots[name] = extraSlotInfo.emptySlots[name] + freeSlots
Expand Down

0 comments on commit 56b8cd0

Please sign in to comment.