Skip to content

Commit 5618f36

Browse files
committed
2.0.97-Release
1 parent a481fd2 commit 5618f36

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Bagnon_ItemLevel/main.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ end
3131

3232
local Module = Bagnon:NewModule(Addon, Private)
3333

34-
local Cache = LibStub("LibItemCache-2.0")
34+
local Cache = LibStub("LibItemCache-2.0", true)
3535
local Container = LibStub("C_Everywhere").Container
3636

3737
-- Lua API
@@ -103,7 +103,9 @@ Module:AddUpdater(function(self)
103103
-- Update the bagnon cache
104104
if (not level and not self.info.link) then
105105
self.info.link = Container.GetContainerItemLink(self:GetBag(), self:GetID())
106-
self.info = Cache:RestoreItemData(self.info)
106+
if (Cache) then
107+
self.info = Cache:RestoreItemData(self.info)
108+
end
107109
level = self.info.level
108110
end
109111
message = level

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [2.0.97-Release] 2024-09-02
8+
### Fixed
9+
- Fixed a bug related to using the deprecated library LibItemCache-2.0.
10+
711
## [2.0.96-Release] 2024-08-18
812
- Updated for WoW Retail Client Patch 11.0.2.
913

0 commit comments

Comments
 (0)