From 2a0154dfa0c3cf64e491034ec8b19af691f5621e Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 19 Dec 2020 14:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=90=8E=E5=8A=A0=E8=BD=BD=E7=88=86=E7=82=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/load.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parts/scenes/load.lua b/parts/scenes/load.lua index 0f142460..90cdddac 100644 --- a/parts/scenes/load.lua +++ b/parts/scenes/load.lua @@ -177,7 +177,9 @@ function scene.update() if newVersionLaunch then--Delete old ranks & Unlock modes which should be unlocked for name,rank in next,RANKS do local M=MODES[name] - if M and M.unlock and rank>0 then + if type(rank)~="number"then + RANKS[name]=nil + elseif M and M.unlock and rank>0 then for _,unlockName in next,M.unlock do if not RANKS[unlockName]then RANKS[unlockName]=0