From 040141f4c8b700ce2d75cd7150574d7b38197643 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 17 Mar 2021 16:34:10 +0000 Subject: [PATCH] refactor: always print current version to server console --- sv_version_check.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sv_version_check.lua b/sv_version_check.lua index c28df55..030d9cf 100644 --- a/sv_version_check.lua +++ b/sv_version_check.lua @@ -58,9 +58,10 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt", -- Get the current resource version local curVer = GetCurrentVersion() + print( " || Current version: " .. curVer ) + if ( text ~= nil ) then - -- Print out the current and latest version - print( " || Current version: " .. curVer ) + -- Print latest version print( " || Latest recommended version: " .. text .."\n ||" ) -- If the versions are different, print it out