From e89a4c682d96969cfefe46c128b205eedf2818f4 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 13 Oct 2020 00:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B2=98=E8=B4=B4=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BB=BB=E5=8A=A1=E4=BB=A3=E7=A0=81=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/gametoolfunc.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index 9be65ce6..d5dae71c 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -264,8 +264,12 @@ function pasteMission(str) end else if _>=34 and _<=114 then - ins(mission,reg) - reg=_-33 + if missionEnum[reg]then + ins(mission,reg) + reg=_-33 + else + return + end elseif _>=115 and _<=126 then for i=1,_-113 do ins(mission,reg)