From 18b4de2a3e1ea59e870188372f680eff21f4ae31 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 15 Sep 2017 21:23:29 +0100 Subject: [PATCH] Fixed auto rank --- locale/ExpGaming-Core/ExpGaming - Rank Control.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Rank Control.lua b/locale/ExpGaming-Core/ExpGaming - Rank Control.lua index 50b36be3..159a4574 100644 --- a/locale/ExpGaming-Core/ExpGaming - Rank Control.lua +++ b/locale/ExpGaming-Core/ExpGaming - Rank Control.lua @@ -116,7 +116,7 @@ function find_new_rank(player) if current_rank.power > global.ranks.highest_timed_rank.power and player.online_time >= global.ranks.lowest_timed_rank.time then --Loop through rank times for _,rank in pairs(get_ranks()) do - if rank.time and tick_to_min(player.online_time) >= rank.time then table.insert(possible_ranks,string_to_rank(rank)) end + if rank.time and tick_to_min(player.online_time) >= rank.time then table.insert(possible_ranks,rank) end end end --Loop through possible ranks