mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
refactor: always print current version to server console
This commit is contained in:
@@ -58,9 +58,10 @@ PerformHttpRequest( "https://wolfknight98.github.io/wk_wars2x_web/version.txt",
|
|||||||
-- Get the current resource version
|
-- Get the current resource version
|
||||||
local curVer = GetCurrentVersion()
|
local curVer = GetCurrentVersion()
|
||||||
|
|
||||||
if ( text ~= nil ) then
|
|
||||||
-- Print out the current and latest version
|
|
||||||
print( " || Current version: " .. curVer )
|
print( " || Current version: " .. curVer )
|
||||||
|
|
||||||
|
if ( text ~= nil ) then
|
||||||
|
-- Print latest version
|
||||||
print( " || Latest recommended version: " .. text .."\n ||" )
|
print( " || Latest recommended version: " .. text .."\n ||" )
|
||||||
|
|
||||||
-- If the versions are different, print it out
|
-- If the versions are different, print it out
|
||||||
|
|||||||
Reference in New Issue
Block a user