Fixed arbitrary logic string limit
This commit is contained in:
@@ -140,7 +140,6 @@ public class LogicBlock extends Block{
|
|||||||
public LExecutor executor = new LExecutor();
|
public LExecutor executor = new LExecutor();
|
||||||
public float accumulator = 0;
|
public float accumulator = 0;
|
||||||
|
|
||||||
//TODO refactor this system, it's broken.
|
|
||||||
public Seq<LogicLink> links = new Seq<>();
|
public Seq<LogicLink> links = new Seq<>();
|
||||||
|
|
||||||
public void readCompressed(byte[] data, boolean relative){
|
public void readCompressed(byte[] data, boolean relative){
|
||||||
@@ -194,7 +193,6 @@ public class LogicBlock extends Block{
|
|||||||
|
|
||||||
public void updateCodeVars(String str, Cons<LAssembler> assemble){
|
public void updateCodeVars(String str, Cons<LAssembler> assemble){
|
||||||
if(str != null){
|
if(str != null){
|
||||||
if(str.length() >= Short.MAX_VALUE) str = str.substring(0, Short.MAX_VALUE - 1);
|
|
||||||
code = str;
|
code = str;
|
||||||
|
|
||||||
try{
|
try{
|
||||||
|
|||||||
Reference in New Issue
Block a user