Skip to content

Commit

Permalink
fixes vendor-lock to just wait til vendor is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanCobb committed Nov 21, 2022
1 parent b7ad3fb commit e9d93a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions OpenThosePouches.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ local function OpenNextPouch()
for container = BACKPACK_CONTAINER, NUM_BAG_SLOTS do
for slot = 1, C_Container.GetContainerNumSlots(container) do
if IsPouch(container, slot) == true then
C_Container.UseContainerItem(container, slot)
if isVendorDialogOpen_lock == false then
C_Container.UseContainerItem(container, slot)
end
C_Timer.After(delayBetweenSearches, OpenNextPouch)
return
end
Expand All @@ -85,9 +87,7 @@ local function OpenNextPouch()
end

local function OpenAllPouchesEventually()
if isVendorDialogOpen_lock == true then
return
end

if isOpening_lock == true then
return
end
Expand Down
2 changes: 1 addition & 1 deletion OpenThosePouches.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Open Those Pouches
## Notes: Automatically opens and tries to loot any backpacks, satchels, or pouches as you loot them
## Author: @icbat
## Version: 11
## Version: 12

## X-WoWI-ID: 26222

Expand Down

0 comments on commit e9d93a4

Please sign in to comment.