Skip to content

Commit

Permalink
bank sort fix and interface version update
Browse files Browse the repository at this point in the history
  • Loading branch information
shirsig committed Feb 11, 2023
1 parent f444575 commit 99ffdb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SortBags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BANK_BAG_CONTAINERS = {-1, 5, 6, 7, 8, 9, 10, 11}
function _G.SortBags()
CONTAINERS = {unpack(BAG_CONTAINERS)}
for i = #CONTAINERS, 1, -1 do
if C_Container.GetBagSlotFlag(i - 1, LE_BAG_FILTER_FLAG_IGNORE_CLEANUP) then
if C_Container.GetBagSlotFlag(CONTAINERS[i], LE_BAG_FILTER_FLAG_IGNORE_CLEANUP) then
tremove(CONTAINERS, i)
end
end
Expand All @@ -19,7 +19,7 @@ end
function _G.SortBankBags()
CONTAINERS = {unpack(BANK_BAG_CONTAINERS)}
for i = #CONTAINERS, 1, -1 do
if C_Container.GetBankBagSlotFlag(i - 1, LE_BAG_FILTER_FLAG_IGNORE_CLEANUP) then
if C_Container.GetBagSlotFlag(CONTAINERS[i], LE_BAG_FILTER_FLAG_IGNORE_CLEANUP) then
tremove(CONTAINERS, i)
end
end
Expand Down
2 changes: 1 addition & 1 deletion SortBags.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 30400
## Interface: 30401
## Title: SortBags
## Version: @project-version@
## Notes: Sorts and stacks your items
Expand Down

0 comments on commit 99ffdb7

Please sign in to comment.