mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Minor parse fix
This commit is contained in:
parent
457514a2c8
commit
792fdef95d
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user