From ba8a39465f08b1c66383189dd45586d90be8540a Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 16 Jan 2021 22:38:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B2=98=E8=B4=B4=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=90=8E=E5=85=89=E6=A0=87=E4=BD=8D=E7=BD=AE=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/customGame.lua | 8 +++++--- parts/scenes/custom_mission.lua | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/parts/scenes/customGame.lua b/parts/scenes/customGame.lua index b2301164..6b639fc8 100644 --- a/parts/scenes/customGame.lua +++ b/parts/scenes/customGame.lua @@ -72,9 +72,11 @@ function scene.keyDown(key) local str=sys.getClipboardText() local args=splitStr(str:sub((str:find(":")or 0)+1),"!") if #args<4 then goto fail end - if not pasteQuestArgs(args[1])then goto fail end - if not pasteSequence(args[2])then goto fail end - if not pasteMission(args[3])then goto fail end + if not( + pasteQuestArgs(args[1])and + pasteSequence(args[2])and + pasteMission(args[3]) + )then goto fail end repeat table.remove(FIELD)until #FIELD==0 FIELD[1]=newBoard() for i=4,#args do diff --git a/parts/scenes/custom_mission.lua b/parts/scenes/custom_mission.lua index b9a421a2..798e250d 100644 --- a/parts/scenes/custom_mission.lua +++ b/parts/scenes/custom_mission.lua @@ -20,7 +20,6 @@ end local missionEnum=missionEnum local legalInput={Z=true,S=true,J=true,L=true,T=true,O=true,I=true,A=true,_=true,P=true} function scene.keyDown(key) - local MISSION=MISSION if key=="left"then local p=cur if p==0 then