From 36b9dcaf438d31fd2aebd418e74754a2db76880e Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 1 Aug 2021 01:25:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=B8=B8=E6=88=8F=E7=9A=84=E5=9C=BA=E5=9C=B0?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=AD=89=E6=96=87=E4=BB=B6=E5=9C=A8=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=97=B6=E4=BC=9A=E7=9B=B4=E6=8E=A5=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.lua b/main.lua index 6dc0492d..8db57048 100644 --- a/main.lua +++ b/main.lua @@ -81,7 +81,7 @@ PLY= require'parts.player' netPLY= require'parts.netPlayer' MODES= require'parts.modes' ---Initialize field +--Initialize fields, sequence, missions, gameEnv for cutsom game local fieldData=FILE.load('conf/customBoards') if fieldData then fieldData=STRING.split(fieldData,"!") @@ -91,12 +91,12 @@ if fieldData then else FIELD[1]=DATA.newBoard() end -DATA.pasteSequence(FILE.load('conf/customSequence')) -DATA.pasteMission(FILE.load('conf/customMissions')) -local customData=FILE.load('conf/customEnv')--gameEnv for cutsom game -if customData or CUSTOMENV.version~=VERSION.code then - TABLE.complete(customData,CUSTOMENV) -end +local sequenceData=FILE.load('conf/customSequence') +if sequenceData then DATA.pasteSequence(sequenceData)end +local missionData=FILE.load('conf/customMissions') +if missionData then DATA.pasteMission(missionData)end +local customData=FILE.load('conf/customEnv') +if customData or CUSTOMENV.version~=VERSION.code then TABLE.complete(customData,CUSTOMENV)end TABLE.complete(require"parts.customEnv0",CUSTOMENV)