Skip to content

Commit

Permalink
Patched new version checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
viral32111 committed May 20, 2019
1 parent a7cf306 commit 4f1ecc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/autorun/server/sv_carkeys_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4f1ecc3

Please sign in to comment.