From 18d52d53dfadeb827d2f376bdbbcfcd71cafb1b9 Mon Sep 17 00:00:00 2001 From: tbkizle Date: Tue, 21 May 2024 16:49:15 -0400 Subject: [PATCH] Remove Usage Of Deprecated API --- src/filters/EquipLocation.lua | 2 +- src/filters/EquipmentSlot.lua | 2 +- src/filters/ItemBind.lua | 2 +- src/filters/ItemID.lua | 2 +- src/filters/ItemLevel.lua | 2 +- src/filters/ItemName.lua | 2 +- src/filters/ItemType.lua | 6 +++--- src/filters/Quality.lua | 2 +- src/filters/ScrapAddon.lua | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/filters/EquipLocation.lua b/src/filters/EquipLocation.lua index 6125857..10083d4 100644 --- a/src/filters/EquipLocation.lua +++ b/src/filters/EquipLocation.lua @@ -11,7 +11,7 @@ local AddOn = _G[AddOnName] -- WoW API local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink -local GetItemInfoInstant = _G.GetItemInfoInstant +local GetItemInfoInstant = _G.C_Item.GetItemInfoInstant -- Libs local LibStub = _G.LibStub diff --git a/src/filters/EquipmentSlot.lua b/src/filters/EquipmentSlot.lua index 76f3d02..6678d66 100644 --- a/src/filters/EquipmentSlot.lua +++ b/src/filters/EquipmentSlot.lua @@ -13,7 +13,7 @@ local AddOn = _G[AddOnName] -- WoW API local GetContainerItemID = _G.C_Container and _G.C_Container.GetContainerItemID or _G.GetContainerItemID -local GetItemInfoInstant = _G.GetItemInfoInstant +local GetItemInfoInstant = _G.C_Item.GetItemInfoInstant -- Libs local LibStub = _G.LibStub diff --git a/src/filters/ItemBind.lua b/src/filters/ItemBind.lua index 2c2df4c..cf3f18f 100644 --- a/src/filters/ItemBind.lua +++ b/src/filters/ItemBind.lua @@ -13,7 +13,7 @@ local AddOn = _G[AddOnName] --local BankButtonIDToInvSlotID = _G.BankButtonIDToInvSlotID local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink local GetContainerItemInfo = _G.C_Container and _G.C_Container.GetContainerItemInfo or _G.GetContainerItemInfo -local GetItemInfo = _G.GetItemInfo +local GetItemInfo = _G.C_Item.GetItemInfo local DoesItemExist = _G.C_Item and _G.C_Item.DoesItemExist local C_ItemIsBound = _G.C_Item and _G.C_Item.IsBound local ItemLocation = _G.ItemLocation diff --git a/src/filters/ItemID.lua b/src/filters/ItemID.lua index 69f962a..d48d3be 100644 --- a/src/filters/ItemID.lua +++ b/src/filters/ItemID.lua @@ -16,7 +16,7 @@ local tonumber = _G.tonumber local wipe = _G.wipe -- WoW API -local GetItemInfo = _G.GetItemInfo +local GetItemInfo = _G.C_Item.GetItemInfo local GetContainerItemID = _G.C_Container and _G.C_Container.GetContainerItemID or _G.GetContainerItemID -- Libs diff --git a/src/filters/ItemLevel.lua b/src/filters/ItemLevel.lua index a200429..0059d92 100644 --- a/src/filters/ItemLevel.lua +++ b/src/filters/ItemLevel.lua @@ -11,7 +11,7 @@ local AddOn = _G[AddOnName] -- WoW API local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink -local GetItemInfo = _G.GetItemInfo +local GetItemInfo = _G.C_Item.GetItemInfo local UnitLevel = _G.UnitLevel -- Libs diff --git a/src/filters/ItemName.lua b/src/filters/ItemName.lua index 9dad32c..d3f61e2 100644 --- a/src/filters/ItemName.lua +++ b/src/filters/ItemName.lua @@ -13,7 +13,7 @@ local AddOn = _G[AddOnName] --- WoW API local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink -local GetItemInfo = _G.GetItemInfo +local GetItemInfo = _G.C_Item.GetItemInfo -- Libs local LibStub = _G.LibStub diff --git a/src/filters/ItemType.lua b/src/filters/ItemType.lua index 6c2f77a..5cdbbab 100644 --- a/src/filters/ItemType.lua +++ b/src/filters/ItemType.lua @@ -15,10 +15,10 @@ local tostring = _G.tostring local tonumber = _G.tonumber -- WoW API -local GetItemClassInfo = _G.GetItemClassInfo -local GetItemSubClassInfo = _G.GetItemSubClassInfo +local GetItemClassInfo = _G.C_Item.GetItemClassInfo +local GetItemSubClassInfo = _G.C_Item.GetItemSubClassInfo local GetContainerItemID = _G.C_Container and _G.C_Container.GetContainerItemID or _G.GetContainerItemID -local GetItemInfoInstant = _G.GetItemInfoInstant +local GetItemInfoInstant = _G.C_Item.GetItemInfoInstant local GetAuctionItemSubClasses if AddOn:IsClassicWow() or AddOn:IsTBCWow() or AddOn:IsWrathWow() or AddOn:IsCataWow() then diff --git a/src/filters/Quality.lua b/src/filters/Quality.lua index 5f27872..9e82d64 100644 --- a/src/filters/Quality.lua +++ b/src/filters/Quality.lua @@ -14,7 +14,7 @@ local pairs = _G.pairs -- WoW API local GetContainerItemLink = _G.C_Container and _G.C_Container.GetContainerItemLink or _G.GetContainerItemLink -local GetItemInfo = _G.GetItemInfo +local GetItemInfo = _G.C_Item.GetItemInfo -- Libs local LibStub = _G.LibStub diff --git a/src/filters/ScrapAddon.lua b/src/filters/ScrapAddon.lua index 3a5cc0c..0f52bd7 100644 --- a/src/filters/ScrapAddon.lua +++ b/src/filters/ScrapAddon.lua @@ -24,7 +24,7 @@ local REAGENTBANK_CONTAINER = _G.REAGENTBANK_CONTAINER local LibStub = _G.LibStub local L = LibStub("AceLocale-3.0"):GetLocale(AddOnName) -if not (IsAddOnLoaded("Scrap") or ( IsAddOnLoadable and IsAddOnLoadable("Scrap")) or ( GetAddOnInfo and select(4,GetAddOnInfo("Scrap"))) ) then +if not (IsAddOnLoaded("Scrap") or ( IsAddOnLoadable and IsAddOnLoadable("Scrap")) or ( C_AddOns.GetAddOnInfo and select(4,C_AddOns.GetAddOnInfo("Scrap"))) ) then return end