From bb3316cad3353cef20ee12b89376af0b3b895d29 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 26 Apr 2025 16:36:46 -0500 Subject: [PATCH] Fix 11.1.5 error, update TOC Fixes #15 --- Breakables.lua | 9 +++++++-- Breakables.toc | 4 ++-- changelog.txt | 5 +++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Breakables.lua b/Breakables.lua index c156ab2..00e09a1 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -1705,7 +1705,12 @@ function Breakables:IsInEquipmentSet(itemId) end function Breakables:GetItemIdFromLink(itemLink) - local _, foundItemId = strsplit(":", itemLink) + local _, num1, num2 = strsplit(":", itemLink) + local foundItemId = num1 + -- support new item link format that adds a new : section in front + if not tonumber(foundItemId) then + foundItemId = num2 + end return tonumber(foundItemId) end @@ -1730,7 +1735,7 @@ function Breakables:SortBreakables(foundBreakables) local iId = self:GetItemIdFromLink(foundBreakables[i][IDX_LINK]) for j=i,#foundBreakables do local jId = self:GetItemIdFromLink(foundBreakables[j][IDX_LINK]) - if iId < jId then + if iId > jId then local temp = foundBreakables[i] foundBreakables[i] = foundBreakables[j] foundBreakables[j] = temp diff --git a/Breakables.toc b/Breakables.toc index bf8a97d..8df3980 100644 --- a/Breakables.toc +++ b/Breakables.toc @@ -1,5 +1,5 @@ -## Interface: 110100 -## Interface-Retail: 110100 +## Interface: 110105 +## Interface-Retail: 110105 ## Interface-Classic: 11507 ## Interface-BCC: 20504 ## Interface-Wrath: 30403 diff --git a/changelog.txt b/changelog.txt index 65716e1..73eb4d2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,8 @@ +v1.10.8: + +- Support WoW 11.1.5 (fixes #15) +- Update TOC + v1.10.7: - Update TOCs