From 4f1ecc326309e33f25cbe29ba3e3eda3ced502de Mon Sep 17 00:00:00 2001 From: viral32111 <19510403+viral32111@users.noreply.github.com> Date: Tue, 21 May 2019 00:51:25 +0100 Subject: [PATCH] Patched new version checker. --- lua/autorun/server/sv_carkeys_init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autorun/server/sv_carkeys_init.lua b/lua/autorun/server/sv_carkeys_init.lua index e1b2375..5c9add8 100644 --- a/lua/autorun/server/sv_carkeys_init.lua +++ b/lua/autorun/server/sv_carkeys_init.lua @@ -46,7 +46,7 @@ sound.Add({ hook.Add("Think", "carKeysVersionChecker", function() http.Fetch("https://api.github.com/repos/viral32111/car-keys/commits", function(body, size, headers, code) local response = util.JSONToTable(body) - local latestCommit = string.sub(response[1]["sha"], 0, 7) + local latestCommit = string.sub(response[2]["sha"], 0, 7) if (latestCommit != currentCommit) then MsgC(Color(255, 0, 0), "[Car Keys] This addon is out of date! Please consider downloading the latest update for the best features and bug fixes.\n")