turtle-wow: use table index instead of function call

This commit is contained in:
shagu
2024-01-25 23:21:24 +01:00
parent fd56ed9192
commit c97c7a4555
+2 -2
View File
@@ -21,7 +21,7 @@ local module = ShaguTweaks:register({
module.enable = function(self)
-- hide turtle-wow's target status texts
if ShaguTweaks_config(T["Real Health Numbers"]) == 1 then
if ShaguTweaks_config[T["Real Health Numbers"]] == 1 then
TargetHPText:Hide()
TargetHPText.Show = function() return end
@@ -36,7 +36,7 @@ module.enable = function(self)
HookWorldMapFrame_Maximize()
-- re-apply worldmap window
if ShaguTweaks_config(T["WorldMap Window"]) == 1 then
if ShaguTweaks_config[T["WorldMap Window"]] == 1 then
WorldMapFrame:SetMovable(true)
WorldMapFrame:EnableMouse(true)