1.0.9

esorochinskiy [06-19-22 - 17:35]
1.0.9
Filename
WellEater.lua
WellEater.txt
diff --git a/WellEater.lua b/WellEater.lua
index b092eba..dccd887 100644
--- a/WellEater.lua
+++ b/WellEater.lua
@@ -2,7 +2,7 @@ WellEater = WellEater or {}
 WellEater.WELLEATER_SAVED_VERSION = 1
 WellEater.AddonName = "WellEater"
 WellEater.DisplayName = "|cFFFFFFWell |c0099FFEater|r"
-WellEater.Version = "1.0.8"
+WellEater.Version = "1.0.9"
 WellEater.Author = "|c5EFFF5esorochinskiy|r"
 local NAMESPACE = {}
 NAMESPACE.settingsDefaults = {
@@ -374,6 +374,11 @@ local function TimersUpdate()
         checkEquippedWeapon()
     end

+    local useRepair = WellEater:getUserPreference("useRepair")
+    if useRepair then
+        checkAndRepair()
+    end
+
 end

 local function StartUp()
@@ -428,11 +433,6 @@ local function InitOnLoad(_, addonName)

                 if not arg then
                     --d(WellEater.AddonName .. " Combat exited")
-                    local useRepair = WellEater:getUserPreference("useRepair")
-                    if useRepair then
-                        checkAndRepair()
-                    end
-
                     StartUp()
                 else
                     --d(WellEater.AddonName .. " Combat entered")
diff --git a/WellEater.txt b/WellEater.txt
index b0c863b..5e5edb3 100644
--- a/WellEater.txt
+++ b/WellEater.txt
@@ -31,7 +31,7 @@
 ## Author: |c5EFFF5esorochinskiy|r
 ## APIVersion: 101033 101034
 ## Description: Auto eat your preferred meals provided by your inventory after food or drink buff expiration. Provides weapon autoload
-## Version: 1.0.8
+## Version: 1.0.9
 ## SavedVariables: WellEater_Settings
 ## DependsOn: LibAddonMenu-2.0>=28