From d24498372bb5c24e5543a60d4aa7544a26ee40ea Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 14 Aug 2024 16:18:29 -0500 Subject: [PATCH] Fix another 11.0.2 error Fixes #10 --- Breakables.lua | 16 +++++++++++----- changelog.txt | 4 ++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Breakables.lua b/Breakables.lua index 12de4ac..c156ab2 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -1513,9 +1513,11 @@ function Breakables:FindBreakablesInSlot(bagId, slotId) local tooltipData if C_TooltipInfo then tooltipData = C_TooltipInfo.GetBagItem(bagId, slotId) - TooltipUtil.SurfaceArgs(tooltipData) - for _, line in ipairs(tooltipData.lines) do - TooltipUtil.SurfaceArgs(line) + if TooltipUtil and TooltipUtil.SurfaceArgs then + TooltipUtil.SurfaceArgs(tooltipData) + for _, line in ipairs(tooltipData.lines) do + TooltipUtil.SurfaceArgs(line) + end end else self.myTooltip:SetBagItem(bagId, slotId) @@ -1616,9 +1618,13 @@ function Breakables:PlayerHasSkillToPickItem(bagId, slotId) return true end - TooltipUtil.SurfaceArgs(tooltipData) + if TooltipUtil and TooltipUtil.SurfaceArgs then + TooltipUtil.SurfaceArgs(tooltipData) + end for _, line in ipairs(tooltipData.lines) do - TooltipUtil.SurfaceArgs(line) + if TooltipUtil and TooltipUtil.SurfaceArgs then + TooltipUtil.SurfaceArgs(line) + end if line.leftText == LOCKED then return not (line.leftColor and line.leftColor.r == 1 and line.leftColor.g < 0.2 and line.leftColor.b < 0.2) end diff --git a/changelog.txt b/changelog.txt index 4297e67..3d5e262 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +v1.10.3: + +- Fix another error from 11.0.2 + v1.10.2: - Fix error from 11.0.2