Error in ItemLevel.lua when character is level 70
mabnp opened this issue ยท 1 comments
Addon Version
v1.9.48
World of Warcraft Version
Retail Beta
Describe the bug
When ItemLevel plugin is enabled opening bags causes an error (on the beta realm):
189x AdiBags/modules/ItemLevel.lua:466: bad argument #1 to 'unpack' (table expected, got nil)
[string "=[C]"]: ?
[string "@AdiBags/modules/ItemLevel.lua"]:466: in function `?'
[string "@AdiBags/modules/ItemLevel.lua"]:170: in function `UpdateButton_Retail'
[string "@AdiBags/modules/ItemLevel.lua"]:131: in function `?'
[string "@AdiBags/libs/CallbackHandler-1.0-7/CallbackHandler-1.0.lua"]:119: in function <...ags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:119>
[string "=[C]"]: ?
[string "@AdiBags/libs/CallbackHandler-1.0-7/CallbackHandler-1.0.lua"]:29: in function <...ags/libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:25>
[string "@AdiBags/libs/CallbackHandler-1.0-7/CallbackHandler-1.0.lua"]:64: in function `SendMessage'
[string "@AdiBags/widgets/ItemButton.lua"]:338: in function `Update'
[string "@AdiBags/widgets/ItemButton.lua"]:305: in function `FullUpdate'
[string "@AdiBags/widgets/ItemButton.lua"]:270: in function <AdiBags/widgets/ItemButton.lua:258>
[string "=[C]"]: in function `Show'
[string "@AdiBags/widgets/ContainerFrame.lua"]:1042: in function `PrepareSections'
[string "@AdiBags/widgets/ContainerFrame.lua"]:1163: in function `FullUpdate'
[string "@AdiBags/widgets/ContainerFrame.lua"]:607: in function <AdiBags/widgets/ContainerFrame.lua:593>
[string "=[C]"]: ?
[string "@AdiBags/core/Utility.lua"]:102: in function <AdiBags/core/Utility.lua:94>
[string "@AdiBags/widgets/LayeredRegion.lua"]:119: in function <AdiBags/widgets/LayeredRegion.lua:108>
Steps to reproduce
- Enable adibags and buggrabber addons
- Open the bag
Adding "Dragonflight" entry to maxLevelRanges in ItemLevels.lua fixes the issue so I guess beta realm is now treated as retail?
This version works fine:
maxLevelRanges = {
[50] = { 72, 140 }, -- Battle for Azeroth
[60] = { 158, 233 }, -- Shadowlands
[70] = { 330, 430 }, -- Dragonflight
}
just a note: if I disable buggrabber I don't see any errors.
Verification
- I have disabled all other addons and made sure this bug is triggered only with AdiBags enabled
was fixed in #835