General fixes

This commit is contained in:
Tercio Jose
2022-11-01 19:45:51 -03:00
parent 05cf03783a
commit 45a980023c
15 changed files with 93 additions and 74 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ if (detailsFramework.IsDragonflightAndBeyond()) then
end
function detailsFramework.Items.GetContainerItemInfo(containerIndex, slotIndex)
if (containerAPIVersion == 2) then
if (containerAPIVersion == 2 and C_Container and C_Container.GetContainerItemInfo) then
local itemInfo = C_Container.GetContainerItemInfo(containerIndex, slotIndex)
return itemInfo.iconFileID, itemInfo.stackCount, itemInfo.isLocked, itemInfo.quality, itemInfo.isReadable, itemInfo.hasLoot, itemInfo.hyperlink, itemInfo.isFiltered, itemInfo.hasNoValue, itemInfo.itemID, itemInfo.isBound
else