LibItemCache-2.0

LibItemCache-2.0

936 Downloads

Bag Info for specialized bags

Mayron opened this issue ยท 0 comments

commented

Is it possible to get bag info for whether the bag represents a specialized bag, such as a leatherworking only bag, or the hunter's arrow bag? I noticed many inventory mods, like bagnon, have sorting functionality and the sorting is based on this library. This causes some frustration because the hunter's arrows and professions material gets taken out of the specialized bags and placed into the regular bags - making those types of bags useless (or to just not bother ever sorting the bags).

The problem is that it uses the "family" ID of the container, but this bit of code doesn't check for what type of bag it is (except if it's a keyring bag or in retail the reagent bank bag):
https://github.com/Jaliborc/LibItemCache-2.0/blob/master/LibItemCache-2.0.lua#L186