mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
fix bag error
This commit is contained in:
@@ -453,8 +453,11 @@ function B:Layout(isBank)
|
|||||||
|
|
||||||
f.Bags[bagID].numSlots = numSlots
|
f.Bags[bagID].numSlots = numSlots
|
||||||
|
|
||||||
local _, _, id = strfind(GetInventoryItemLink("player", ContainerIDToInventoryID(bagID)) or "", "item:(%d+)")
|
local link = GetInventoryItemLink("player", ContainerIDToInventoryID(bagID))
|
||||||
f.Bags[bagID].type = select(6, GetItemInfo(id))
|
if link then
|
||||||
|
local _, _, id = strfind(link, "item:(%d+)")
|
||||||
|
f.Bags[bagID].type = select(6, GetItemInfo(id))
|
||||||
|
end
|
||||||
|
|
||||||
--Hide unused slots
|
--Hide unused slots
|
||||||
for i = 1, MAX_CONTAINER_ITEMS do
|
for i = 1, MAX_CONTAINER_ITEMS do
|
||||||
|
|||||||
Reference in New Issue
Block a user