Bagnon

Bagnon

122M Downloads

Custom LibItemCache causes error

ckaotik opened this issue ยท 1 comments

commented

When using a custom LibItemCache cache the following error is thrown when clicking the button for the character dropdown:

2x ...nterface\Bagnon\components\playerSelector.lua:83: attempt to call method 'TogglePlayerDropdown' (a nil value)
...nterface\Bagnon\components\playerSelector.lua:83: in function 'ShowPlayerSelector'
...nterface\Bagnon\components\playerSelector.lua:59: in function <...nterface\Bagnon\components\playerSelector.lua:58>

The reason for this is the use of LibStub('LibItemCache-1.1'):HasCache() - once in playerSelector.lua where it's run when opening the inventory (I suppose) and once in playerDropdown.lua, where it's run immediately upon loading. This causes above error when the used cache is loaded after Bagnon (e.g. it's name starts with a higher letter).

commented

Fixed!