This commit is contained in:
Anuken 2020-08-06 12:31:42 -04:00
parent 5dc78a24e0
commit ac3106728f
3 changed files with 3 additions and 4 deletions

View File

@ -70,9 +70,7 @@ public class NodeSlotProcessor extends BaseProcessor{
CodeBlock.Builder code = CodeBlock.builder();
fields.each((type, inits) -> {
code.addStatement("map.put($L.class, new mindustry.logic.LogicNode.NodeSlot[]{$L})", type.toString(), inits.toString(","));
});
fields.each((type, inits) -> code.addStatement("map.put($L.class, new mindustry.logic.LogicNode.NodeSlot[]{$L})", type.toString(), inits.toString(",")));
slotClass.addStaticBlock(code.build());

View File

@ -36,6 +36,7 @@ public abstract class LogicNode{
@Override
public void build(Table table){
//TODO replace with dropdown menu
TextButton[] button = {null};
button[0] = table.button(op.symbol, Styles.cleart, () -> {
op = BinaryOp.all[(op.ordinal() + 1) % BinaryOp.all.length];

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=ebfb38e52d8af4d0a48fbbdfc702846a0d135e21
archash=d71d43f90bca3d764b79e22c868f840fc4261361