From a1980cf76691c5f77011303e72514fcad79cdf50 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 10 Jul 2021 02:07:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.lua b/main.lua index f2842cb1..d824216b 100644 --- a/main.lua +++ b/main.lua @@ -239,7 +239,7 @@ end --Update data do - local needSave,autoRestart + local needSave if type(STAT.version)~='number'then STAT.version=0 @@ -259,7 +259,7 @@ do if STAT.version~=VERSION.code then STAT.version=VERSION.code needSave=true - autoRestart=true + love.event.quit('restart') end if SETTING.ghostType=='greyCell'then SETTING.ghostType='grayCell' @@ -305,9 +305,6 @@ do FILE.save(RANKS,'conf/unlock') FILE.save(STAT,'conf/data') end - if autoRestart then - love.event.quit('restart') - end end --Apply system setting