From 4cdb50de2d47215e267d57379a8800d71037c027 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 31 May 2019 18:23:13 +0100 Subject: [PATCH] Fixed player list all showing same percentage --- modules/gui/player-list.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/player-list.lua b/modules/gui/player-list.lua index 186d6317..e5a90bab 100644 --- a/modules/gui/player-list.lua +++ b/modules/gui/player-list.lua @@ -306,7 +306,7 @@ end) if time_element and time_element.valid then time_element.label.caption = format_time(next_player.online_time) local tick = game.tick > 0 and game.tick or 1 - local percent = math.round(player.online_time/tick,3)*100 + local percent = math.round(next_player.online_time/tick,3)*100 time_element.label.tooltip = {'player-list.afk-time',percent,format_time(player.afk_time,{minutes=true,long=true})} end end