mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 23:37:51 +07:00
Fixed #10085
This commit is contained in:
@ -10,7 +10,6 @@ import mindustry.logic.LExecutor.*;
|
|||||||
/** "Compiles" a sequence of statements into instructions. */
|
/** "Compiles" a sequence of statements into instructions. */
|
||||||
public class LAssembler{
|
public class LAssembler{
|
||||||
public static ObjectMap<String, Func<String[], LStatement>> customParsers = new ObjectMap<>();
|
public static ObjectMap<String, Func<String[], LStatement>> customParsers = new ObjectMap<>();
|
||||||
public static final int maxTokenLength = 36;
|
|
||||||
|
|
||||||
private static final int invalidNum = Integer.MIN_VALUE;
|
private static final int invalidNum = Integer.MIN_VALUE;
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ public abstract class LStatement{
|
|||||||
|
|
||||||
protected Cell<TextField> field(Table table, String value, Cons<String> setter){
|
protected Cell<TextField> field(Table table, String value, Cons<String> setter){
|
||||||
return table.field(value, Styles.nodeField, s -> setter.get(sanitize(s)))
|
return table.field(value, Styles.nodeField, s -> setter.get(sanitize(s)))
|
||||||
.size(144f, 40f).pad(2f).color(table.color).maxTextLength(LAssembler.maxTokenLength);
|
.size(144f, 40f).pad(2f).color(table.color);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Cell<TextField> fields(Table table, String desc, String value, Cons<String> setter){
|
protected Cell<TextField> fields(Table table, String desc, String value, Cons<String> setter){
|
||||||
|
Reference in New Issue
Block a user