mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Fixed afk time on player list
This commit is contained in:
@@ -325,7 +325,7 @@ end)
|
|||||||
time_element.label.caption = format_time(next_player.online_time)
|
time_element.label.caption = format_time(next_player.online_time)
|
||||||
local tick = game.tick > 0 and game.tick or 1
|
local tick = game.tick > 0 and game.tick or 1
|
||||||
local percent = math.round(next_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})}
|
time_element.label.tooltip = {'player-list.afk-time',percent,format_time(next_player.afk_time,{minutes=true,long=true})}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user