Quantcast

Fire bindings changed on player entering world

Jim Whitehead [10-16-16 - 08:18]
Fire bindings changed on player entering world

Some spec-based bindings are being lost in between instances, this
should help to mitigate that. It's difficult to reproduce without the
right character/instance which I'm not able to reproduce but this should
fix some of those issues.

It will cause Clique to do a slight bit more work when zoning between
instances, but I don't think there are any crucial points where that
happens.
Filename
Clique.lua
diff --git a/Clique.lua b/Clique.lua
index fd2ff30..2f2cdfc 100755
--- a/Clique.lua
+++ b/Clique.lua
@@ -815,10 +815,7 @@ function addon:TalentGroupChanged()
     self:FireMessage("BINDINGS_CHANGED")
 end

--- Ensure we trigger a bindings change the first time the player enters the
--- world.
 function addon:PlayerEnteringWorld()
-    self:UnregisterEvent("PLAYER_ENTERING_WORLD")
     self:FireMessage("BINDINGS_CHANGED")
 end