Skip to content

Commit

Permalink
Fixed auto remove items feature
Browse files Browse the repository at this point in the history
Workaround for BAG_UPDATE_DELAYED event not firing in 3.4.1
  • Loading branch information
Bluephobia committed Jan 19, 2023
1 parent 49b3d8c commit d2d73cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/Master.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,12 @@ function Master:Create()
NotaLoot:RegisterEvent("TRADE_SHOW", function()
master:OnTradeOpened()
end)
NotaLoot:RegisterEvent("BAG_UPDATE_DELAYED", function()
master:OnInventoryUpdate()
-- This event is no longer fired in 3.4.1 - workaround below
-- NotaLoot:RegisterEvent("BAG_UPDATE_DELAYED", function()
-- master:OnInventoryUpdate()
-- end)
NotaLoot:RegisterEvent("BAG_UPDATE", function()
C_Timer.After(0.001, function() master:OnInventoryUpdate() end)
end)
NotaLoot:RegisterEvent("CHAT_MSG_LOOT", function(_, ...)
master:OnLootMessage(...)
Expand Down
2 changes: 1 addition & 1 deletion src/NotaLoot.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Title: Nota Loot
## Notes: Loot distribution helper developed for nota
## Author: Bluephobia
## Version: 3.3.0
## Version: 3.3.1
## SavedVariables: NotaLootPrefs

embeds.xml
Expand Down

0 comments on commit d2d73cb

Please sign in to comment.