Skip to content

Commit

Permalink
Increase schematic size. Show the position of logic processor control…
Browse files Browse the repository at this point in the history
…ling units.
  • Loading branch information
Tianlalu233 committed Aug 19, 2021
1 parent e2f02c9 commit cff3b26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/src/mindustry/Vars.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class Vars implements Loadable{
/** Maximum extra padding around deployment schematics. */
public static final int maxLoadoutSchematicPad = 5;
/** Maximum schematic size.*/
public static final int maxSchematicSize = 32;
public static final int maxSchematicSize = 999;
/** All schematic base64 starts with this string.*/
public static final String schematicBaseStart ="bXNjaA";
/** IO buffer size. */
Expand Down
4 changes: 2 additions & 2 deletions core/src/mindustry/type/UnitType.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ public void display(Unit unit, Table table){
}
}).growX();

if(unit.controller() instanceof LogicAI){
if(unit.controller() instanceof LogicAI control){
table.row();
table.add(Blocks.microProcessor.emoji() + " " + Core.bundle.get("units.processorcontrol")).growX().wrap().left();
table.add(Blocks.microProcessor.emoji() + " (" + control.controller.x / tilesize + ", " + control.controller.y / tilesize + ")").growX().wrap().left();
table.row();
table.label(() -> Iconc.settings + " " + (long)unit.flag + "").color(Color.lightGray).growX().wrap().left();
}
Expand Down

0 comments on commit cff3b26

Please sign in to comment.