Mercurial > wow > reagentmaker
changeset 113:c79ab5443ee5 v1.1beta1
Corrected the lua error when entering combat
author | contrebasse |
---|---|
date | Fri, 03 Jun 2011 12:24:04 +0200 |
parents | 69300309ac21 |
children | c770f969ffa2 |
files | CampFireButton.lua ReagentMaker.lua |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/CampFireButton.lua Thu Jun 02 23:07:49 2011 +0200 +++ b/CampFireButton.lua Fri Jun 03 12:24:04 2011 +0200 @@ -67,8 +67,10 @@ -- Hide button function A.HideCampFireBtn() - if btn then btn:Hide() end - btn:UnregisterAllEvents() + if btn then + btn:Hide() + btn:UnregisterAllEvents() + end end -- Show button if applicable
--- a/ReagentMaker.lua Thu Jun 02 23:07:49 2011 +0200 +++ b/ReagentMaker.lua Fri Jun 03 12:24:04 2011 +0200 @@ -79,8 +79,6 @@ --@todo Unregister events when not needed A.EventsFrame:RegisterEvent("TRADE_SKILL_SHOW") A.EventsFrame:RegisterEvent("TRADE_SKILL_UPDATE") -A.EventsFrame:RegisterEvent("PLAYER_REGEN_ENABLED") -A.EventsFrame:RegisterEvent("PLAYER_REGEN_DISABLED") --------------------------------------------------- @@ -118,6 +116,10 @@ A.tooltipRecipe:SetFrameStrata("TOOLTIP") A.tooltipRecipe:Hide() + -- Used for the campfire button only + A.EventsFrame:RegisterEvent("PLAYER_REGEN_ENABLED") + A.EventsFrame:RegisterEvent("PLAYER_REGEN_DISABLED") + -- Button for enchanting directy on a scroll A.LoadEnchantOnScroll() end -- function