New logic parser

This commit is contained in:
Anuken
2021-03-09 15:47:19 -05:00
parent 4f37f29ae8
commit ae2736d393
5 changed files with 158 additions and 126 deletions

View File

@@ -1,6 +1,5 @@
package mindustry.world.blocks.logic;
import arc.*;
import arc.func.*;
import arc.math.geom.*;
import arc.scene.ui.layout.*;
@@ -302,7 +301,7 @@ public class LogicBlock extends Block{
try{
//create assembler to store extra variables
LAssembler asm = LAssembler.assemble(str, LExecutor.maxInstructions);
LAssembler asm = LAssembler.assemble(str);
//store connections
for(LogicLink link : links){
@@ -357,7 +356,7 @@ public class LogicBlock extends Block{
Log.err(e);
//handle malformed code and replace it with nothing
executor.load("", LExecutor.maxInstructions);
executor.load("");
}
}
}