From 75a714824d06689da40b5a005a1fe550f6ad1cdb Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 24 Dec 2018 21:14:37 +0800 Subject: [PATCH] Fix WeatherList Bug --- _server/blockly/MotaAction.g4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_server/blockly/MotaAction.g4 b/_server/blockly/MotaAction.g4 index 809dd3b1..a1021073 100644 --- a/_server/blockly/MotaAction.g4 +++ b/_server/blockly/MotaAction.g4 @@ -1176,7 +1176,7 @@ default : [null,1] colour : this.soundColor if(Int_0<1 || Int_0>10) throw new Error('天气的强度等级, 在1-10之间'); var code = '{"type": "setWeather", "name": "'+Weather_List_0+'", "level": '+Int_0+'},\n'; -if(Weather_List_0==='')code = '{"type": "setWeather"},\n'; +if(Weather_List_0===''||Weather_List_0==='null'||Weather_List_0==null)code = '{"type": "setWeather"},\n'; return code; */; @@ -1703,7 +1703,7 @@ Arithmetic_List Weather_List : '无'|'雨'|'雪'|'雾' - /*Weather_List ['','rain','snow','fog']*/; + /*Weather_List ['null','rain','snow','fog']*/; B_0_List : '不改变'|'不可通行'|'可以通行'