From 1e7c75b966e69cd4d19cbe4d279dbf1fe7b03ba9 Mon Sep 17 00:00:00 2001 From: Antonio Lobato Date: Wed, 4 Jan 2023 20:16:50 -0800 Subject: [PATCH] Fixed lua error spam. --- core/Core.lua | 4 ++-- core/Hooks.lua | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/Core.lua b/core/Core.lua index d63dd01c..c5827058 100644 --- a/core/Core.lua +++ b/core/Core.lua @@ -119,8 +119,8 @@ function addon:OnInitialize() -- Disable the reagent bag tutorial C_CVar.SetCVarBitfield("closedInfoFrames", LE_FRAME_TUTORIAL_EQUIP_REAGENT_BAG, true) - C_CVar.SetCVarBool("professionToolSlotsExampleShown", true) - C_CVar.SetCVarBool("professionAccessorySlotsExampleShown", true) + C_CVar.SetCVar("professionToolSlotsExampleShown", 1) + C_CVar.SetCVar("professionAccessorySlotsExampleShown", 1) self:Debug('Initialized') end diff --git a/core/Hooks.lua b/core/Hooks.lua index cb5b7022..c826f991 100644 --- a/core/Hooks.lua +++ b/core/Hooks.lua @@ -213,6 +213,5 @@ function addon:ToggleBackpack() end function addon:CloseSpecialWindows() - local found = self.hooks.CloseSpecialWindows() - return self:CloseAllBags() or found + return self:CloseAllBags() end