mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-24 04:18:11 -08:00
Fix Buff timers showing xx:60 sometimes
This commit is contained in:
@@ -94,7 +94,7 @@ function this.update_timer(buff, timer)
|
||||
|
||||
buff.timer = timer;
|
||||
buff.minutes_left = minutes_left;
|
||||
buff.seconds_left = timer - 60 * minutes_left;
|
||||
buff.seconds_left = math.floor(timer - 60 * minutes_left);
|
||||
|
||||
if buff.duration ~= 0 then
|
||||
buff.timer_percentage = timer / buff.duration;
|
||||
|
||||
Reference in New Issue
Block a user