From 2d974543ff7033f8307fe39b2294a901a596d06c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 13 Dec 2020 22:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E5=88=A0=E9=99=A4=E6=97=A7?= =?UTF-8?q?=E5=AD=98=E6=A1=A3=E6=96=87=E4=BB=B6=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/main.lua b/main.lua index 5030922e..6328df9c 100644 --- a/main.lua +++ b/main.lua @@ -273,8 +273,17 @@ if fs.getInfo("key.dat")then keyMap=FILE.load("key")end if fs.getInfo("virtualkey.dat")then VK_org=FILE.load("virtualkey")end if fs.getInfo("account.dat")then ACCOUNT=FILE.load("account")end -if fs.getInfo("tech_ultimate.dat")then fs.remove("tech_ultimate.dat")end -if fs.getInfo("tech_ultimate+.dat")then fs.remove("tech_ultimate+.dat")end +for _,v in next,{ + "tech_ultimate.dat", + "tech_ultimate+.dat", + "sprintFix.dat", + "sprintLock.dat", + "marathon_ultimate.dat", + "infinite.dat", + "infinite_dig.dat", +}do + if fs.getInfo(v)then fs.remove(v)end +end --Update data do @@ -284,8 +293,6 @@ do if R.infinite and R.infinite~=6 then R.infinite=6 R.infinite_dig=6 - fs.remove("infinite.dat") - fs.remove("infinite_dig.dat") end if not text.modes[STAT.lastPlay]then STAT.lastPlay="sprint_10" @@ -327,13 +334,10 @@ do STAT.lastPlay="sprint_10" RANKS.sprintFix=nil RANKS.sprintLock=nil - fs.remove("sprintFix.dat") - fs.remove("sprintLock.dat") end if S.version<1205 then SETTING.VKCurW=SETTING.VKCurW*.1 SETTING.VKTchW=SETTING.VKTchW*.1 - fs.remove("marathon_ultimate.dat") end newVersionLaunch=true