From 216d1c0e013bacfd142eb5cee2ee8de81eefdd0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Majdand=C5=BEi=C4=87?= Date: Sat, 23 Mar 2024 12:06:23 +0100 Subject: [PATCH] Fix issue where play time was calculated off of total time (instead of today time) --- FreshShit/BattlePassTimer/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FreshShit/BattlePassTimer/init.lua b/FreshShit/BattlePassTimer/init.lua index 87c8e63..6667d6f 100644 --- a/FreshShit/BattlePassTimer/init.lua +++ b/FreshShit/BattlePassTimer/init.lua @@ -8,7 +8,7 @@ if WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today] == nil then WeakAura aura_env.CalculateOnlineTime = function() local time = 0 - for k, info in ipairs(WeakAurasSaved.Cyka.LoginInfo[UnitName("player")]) do + for k, info in ipairs(WeakAurasSaved.Cyka.LoginInfo[UnitName("player")][Today]) do if info.LogoutTime ~= nil then time = time + (info.LogoutTime - info.LoginTime) else