update bags

This commit is contained in:
Bunny67
2018-07-08 10:49:19 +03:00
parent 9f756d4098
commit d8539f81fe
3 changed files with 11 additions and 8 deletions
+1 -5
View File
@@ -449,11 +449,7 @@ function B:Layout(isBank)
end
f.Bags[bagID].numSlots = numSlots
local link = GetInventoryItemLink("player", ContainerIDToInventoryID(bagID))
if link then
local _, _, id = strfind(link, "item:(%d+)")
f.Bags[bagID].type = GetItemFamily(id)
end
f.Bags[bagID].type = GetItemFamily(GetInventoryItemLink("player", ContainerIDToInventoryID(bagID)))
--Hide unused slots
for i = 1, MAX_CONTAINER_ITEMS do