diff --git a/core/src/mindustry/logic/LAssembler.java b/core/src/mindustry/logic/LAssembler.java index 95195cc3fe..48e59cf0c1 100644 --- a/core/src/mindustry/logic/LAssembler.java +++ b/core/src/mindustry/logic/LAssembler.java @@ -71,6 +71,7 @@ public class LAssembler{ try{ String[] arr; + if(line.startsWith("#")) continue; //yes, I am aware that this can be split with regex, but that's slow and even more incomprehensible if(line.contains(" ")){ @@ -133,7 +134,10 @@ public class LAssembler{ String first = arr[0]; if(customParsers.containsKey(first)){ statements.add(customParsers.get(first).get(arr)); - } //unparseable statement, skip + }else{ + //unparseable statement + statements.add(new InvalidStatement()); + } } }catch(Exception parseFailed){ parseFailed.printStackTrace();