Skip to content

Commit

Permalink
Various bug fixes for Dragonflight (#759)
Browse files Browse the repository at this point in the history
This CL fixes the addon not loading for users and eliminates most errors so the Addon is usable. This CL does not add new features or support for the new bag type in Retail, yet. A set of more comprehensive updates will be released at a later date.

* Fixed a nil value bug in ItemLevel.lua

* Updated docmeta

* Fixed bug that caused item borders not to update.

* Updated config TOC
  • Loading branch information
Cidan authored Nov 21, 2022
1 parent aee2c2e commit 5b0d33e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .docmeta
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-
type: textile
input-file: README.textile
type: markdown
input-file: README.md
output-page: Main
2 changes: 1 addition & 1 deletion AdiBags_Config/AdiBags_Config.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100000
## Interface: 100002

## Title: AdiBags Configuration
## Notes: Adirelle's bag addon.
Expand Down
2 changes: 2 additions & 0 deletions modules/ItemLevel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ function mod:UpdateButton_Retail(event, button)
and (quality ~= ITEM_QUALITY_POOR or not settings.ignoreJunk)
and (loc ~= "" or not settings.equippableOnly)
and (quality ~= ITEM_QUALITY_HEIRLOOM or not settings.ignoreHeirloom)
and colorSchemes[settings.colorScheme] ~= nil
then
color = {colorSchemes[settings.colorScheme](level, quality, reqLevel, (loc ~= ""))}
shouldShow = true
Expand Down Expand Up @@ -213,6 +214,7 @@ function mod:UpdateButton_Classic(event, button)
if level >= settings.minLevel
and (quality ~= LE_ITEM_QUALITY_POOR or not settings.ignoreJunk)
and (loc ~= "" or not settings.equippableOnly)
and colorSchemes[settings.colorScheme] ~= nil
then
if SyLevel then
if settings.useSyLevel then
Expand Down
2 changes: 1 addition & 1 deletion widgets/ItemButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ end
-- Bugfix: This fixes a bug where hasItem might be set to 1 by
-- some internal Blizzard code.
local function hasItem(i)
return i and i ~= 1
return i
end

function buttonProto:UpdateBorder(isolatedEvent)
Expand Down

0 comments on commit 5b0d33e

Please sign in to comment.