Skip to content

Commit

Permalink
Remove CURSOR_UPDATE support
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Oct 11, 2023
1 parent 92d82ca commit ff3ba95
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Bag.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,7 @@ function BagMixin:Set(parent, id)
self:Update()

self:RegisterEvent("ITEM_LOCK_CHANGED")
if WoW10 then
self:RegisterEvent("CURSOR_CHANGED")
else
self:RegisterEvent("CURSOR_UPDATE")
end
self:RegisterEvent("CURSOR_CHANGED")
self:RegisterEvent("BAG_UPDATE")
self:RegisterEvent("PLAYERBANKSLOTS_CHANGED")

Expand Down Expand Up @@ -202,7 +198,7 @@ function BagMixin:OnEvent(event, ...)
elseif not self:IsCached() then
if event == "ITEM_LOCK_CHANGED" then
self:UpdateLock()
elseif event == "CURSOR_UPDATE" or event == "CURSOR_CHANGED" then
elseif event == "CURSOR_CHANGED" then
self:UpdateCursor()
elseif event == "BAG_UPDATE" or event == "PLAYERBANKSLOTS_CHANGED" then
self:Update()
Expand Down

0 comments on commit ff3ba95

Please sign in to comment.