Remove local db and changed a function name
Repooc [08-09-14 - 05:02]
Remove local db and changed a function name
diff --git a/ElvUI_SLE/core/toolkit.lua b/ElvUI_SLE/core/toolkit.lua
index f9d5d71..fc3c412 100644
--- a/ElvUI_SLE/core/toolkit.lua
+++ b/ElvUI_SLE/core/toolkit.lua
@@ -56,7 +56,7 @@ local function UpdateAll()
UF:Update_CombatIndicator()
end
LT:LootShow()
- LT:WTF()
+ LT:Update()
UB:UpdateAll()
RM:Update()
RF:Update()
diff --git a/ElvUI_SLE/modules/loot.lua b/ElvUI_SLE/modules/loot.lua
index a4d615a..0628bae 100644
--- a/ElvUI_SLE/modules/loot.lua
+++ b/ElvUI_SLE/modules/loot.lua
@@ -1,7 +1,6 @@
local E, L, V, P, G, _ = unpack(ElvUI);
local LT = E:GetModule('SLE_Loot')
local M = E:GetModule('Misc')
-local db
local check = false
local t = 0
@@ -187,7 +186,7 @@ local function LoadConfig(event, addon)
LT:UnregisterEvent("ADDON_LOADED")
end
-function LT:WTF()
+function LT:Update()
MaxPlayerLevel = GetMaxPlayerLevel()
PlayerLevel = UnitLevel('player')
@@ -234,5 +233,5 @@ end
function LT:Initialize()
hooksecurefunc(M, 'START_LOOT_ROLL', function(self, event, id) HandleRoll(event, id) end)
if not E.db.sle.loot.enable then return end
- LT:WTF()
+ LT:Update()
end
\ No newline at end of file