Skip to content

Commit 0cc58d1

Browse files
committed
Fixing lua error from mousing over XP bar
1 parent 1afbf67 commit 0cc58d1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CT_BottomBar/CT_BottomBar_Exp.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,12 @@ local function CT_BottomBar_ExhaustionToolTipText()
129129
exhaustionStateMultiplier = exhaustionStateMultiplier * 100;
130130

131131
local exhaustionCountdown;
132-
if (GetTimeToWellRested()) then
133-
exhaustionCountdown = GetTimeToWellRested() / 60;
134-
end
132+
-- GetTimeToWellRested was deprecated in 10.2.5 and seems to have been removed in 4.4.0 for cata classic. I'm not sure of a replacement function.
133+
-- From what I can tell the function just always returned nil anyways, so this block would not actually execute anyways
134+
-- For now I'm commenting this out
135+
-- if (GetTimeToWellRested()) then
136+
-- exhaustionCountdown = GetTimeToWellRested() / 60;
137+
-- end
135138

136139
local currXP = UnitXP("player");
137140
local nextXP = UnitXPMax("player");

CT_BottomBar/changes.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
CT_BottomBar (10.3.0.1) 2024-05-13
2+
- Commenting out a call to deprecated function GetTimeToWellRested
3+
14
CT_BottomBar (10.3.0.0) 2024-05-10
25
- Update for Cata Classic 4.4.0
36

0 commit comments

Comments
 (0)