diff --git a/main.lua b/main.lua index 47ba5950..d0ac8f48 100644 --- a/main.lua +++ b/main.lua @@ -26,7 +26,7 @@ DAILYLAUNCH=false LOGIN=false EDITING="" WSCONN=false -LATEST_VERSION=false +ALLOW_ONLINE=false ERRDATA={} --System setting diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index f7698d02..08699a46 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -1223,20 +1223,22 @@ do if message then if op=="ping"then WS.send("app",message,"pong") - --TODO: ping animation - --TODO: what to do with res? elseif op=="close"then LOG.print(text.wsClose..message,"warn") return else message=JSON.decode(message) + if VERSION_CODE>=message.lowest then + ALLOW_ONLINE=true + end + if VERSION_CODE