This commit is contained in:
Pinya
2018-07-17 21:01:37 +03:00
parent 6a89e5ae41
commit b700d26e65
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -378,7 +378,7 @@ function B:IsSpecialtyBag(bagID)
local bag = GetInventoryItemLink("player", inventorySlot)
if not bag then return false end
local family = GetBagFamily(bag)
local family = GetItemFamily(bag, true)
if family == 0 or family == nil then return false end
return family
@@ -393,7 +393,7 @@ function B:CanItemGoInBag(bag, slot, targetBag)
itemFamily = 1
end
end
local bagFamily = GetBagFamily(GetInventoryItemLink("player", ContainerIDToInventoryID(targetBag)))
local bagFamily = GetItemFamily(GetInventoryItemLink("player", ContainerIDToInventoryID(targetBag)), true)
if itemFamily then
return (bagFamily == 0) or band(itemFamily, bagFamily) > 0
else