1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-06 00:23:49 +02:00

Minor update

Added local t to player_list.
This commit is contained in:
Gerkiz 2019-07-08 23:20:05 +02:00
parent df84b96d35
commit 8eff12a647

View File

@ -86,7 +86,7 @@ end
local function get_rank(player)
local play_table = play_time.get_session_table()
local t = 0
if play_table then
if play_table[player.name] then t = play_table[player.name] end
end
@ -138,10 +138,8 @@ local function get_sorted_list(sort_by)
player_list[i].rank = get_rank(player)
player_list[i].name = player.name
if play_table then
if play_table[player.name] then t = play_table[player.name] end
end
local t = 0
if play_table[player.name] then t = play_table[player.name] end
player_list[i].total_played_time = get_formatted_playtime(t + player.online_time)
player_list[i].total_played_ticks = t + player.online_time