diff --git a/Bagnon_ItemLevel/main.lua b/Bagnon_ItemLevel/main.lua index 2ded19d..8583186 100644 --- a/Bagnon_ItemLevel/main.lua +++ b/Bagnon_ItemLevel/main.lua @@ -31,7 +31,7 @@ end local Module = Bagnon:NewModule(Addon, Private) -local Cache = LibStub("LibItemCache-2.0") +local Cache = LibStub("LibItemCache-2.0", true) local Container = LibStub("C_Everywhere").Container -- Lua API @@ -103,7 +103,9 @@ Module:AddUpdater(function(self) -- Update the bagnon cache if (not level and not self.info.link) then self.info.link = Container.GetContainerItemLink(self:GetBag(), self:GetID()) - self.info = Cache:RestoreItemData(self.info) + if (Cache) then + self.info = Cache:RestoreItemData(self.info) + end level = self.info.level end message = level diff --git a/CHANGELOG.md b/CHANGELOG.md index ad062cb..f7f7043 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2.0.97-Release] 2024-09-02 +### Fixed +- Fixed a bug related to using the deprecated library LibItemCache-2.0. + ## [2.0.96-Release] 2024-08-18 - Updated for WoW Retail Client Patch 11.0.2.