Skip to content

Commit

Permalink
Core: Updated OnCursorUpdate event handling
Browse files Browse the repository at this point in the history
This event has been removed entirely. Using CURSOR_CHANGED instead appears to be working in a similar fashion, though more testing is needed.
  • Loading branch information
rdw-software committed Oct 27, 2022
1 parent 2e9dc14 commit f8ae698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/EventHandlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function EventHandlers:Register()
self:RegisterEvent("GUILDBANKFRAME_CLOSED", "OnEvent")
self:RegisterEvent("MAIL_CLOSED", "OnEvent")
self:RegisterEvent("MAIL_SHOW", "OnEvent")
self:RegisterEvent("CURSOR_UPDATE", "OnCursorUpdate") -- Fishing detection
self:RegisterEvent("CURSOR_CHANGED", "OnCursorChanged") -- Fishing detection
self:RegisterEvent("UNIT_SPELLCAST_SENT", "OnSpellcastSent") -- Fishing detection
self:RegisterEvent("UNIT_SPELLCAST_STOP", "OnSpellcastStopped") -- Fishing detection
self:RegisterEvent("UNIT_SPELLCAST_FAILED", "OnSpellcastFailed") -- Fishing detection
Expand Down Expand Up @@ -823,7 +823,7 @@ local function stripColorCode(input)
return output
end

function R:OnCursorUpdate(event)
function R:OnCursorChanged(event)
if Rarity.foundTarget then
return
end
Expand All @@ -833,7 +833,7 @@ function R:OnCursorUpdate(event)
local t = stripColorCode(tooltipLeftText1:GetText())
if self.miningnodes[t] or self.fishnodes[t] or self.opennodes[t] then
Rarity.lastNode = t
Rarity:Debug("OnCursorUpdate found lastNode = " .. tostring(t))
Rarity:Debug("OnCursorChanged found lastNode = " .. tostring(t))
end
if Rarity.relevantSpells[Rarity.previousSpell] then
self:GetWorldTarget()
Expand Down

0 comments on commit f8ae698

Please sign in to comment.