Skip to content

Commit

Permalink
Fix another 11.0.2 error
Browse files Browse the repository at this point in the history
Fixes #10
  • Loading branch information
parnic committed Aug 14, 2024
1 parent 89191ad commit d244983
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Breakables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.10.3:

- Fix another error from 11.0.2

v1.10.2:

- Fix error from 11.0.2
Expand Down

0 comments on commit d244983

Please sign in to comment.