Removed spaces in brackets

This commit is contained in:
summetdev
2020-10-27 21:54:48 +03:00
parent a78faa57f3
commit 9a7e0fb45e
17 changed files with 32 additions and 32 deletions

View File

@@ -13,7 +13,7 @@ public class DrawOperation{
private MapEditor editor;
private LongSeq array = new LongSeq();
public DrawOperation(MapEditor editor) {
public DrawOperation(MapEditor editor){
this.editor = editor;
}
@@ -37,7 +37,7 @@ public class DrawOperation{
}
}
private void updateTile(int i) {
private void updateTile(int i){
long l = array.get(i);
array.set(i, TileOp.get(TileOp.x(l), TileOp.y(l), TileOp.type(l), getTile(editor.tile(TileOp.x(l), TileOp.y(l)), TileOp.type(l))));
setTile(editor.tile(TileOp.x(l), TileOp.y(l)), TileOp.type(l), TileOp.value(l));

View File

@@ -158,7 +158,7 @@ public abstract class BulletType extends Content{
}
public void hitTile(Bullet b, Building tile, float initialHealth){
if(status == StatusEffects.burning) {
if(status == StatusEffects.burning){
Fires.create(tile.tile);
}
hit(b);
@@ -209,14 +209,14 @@ public abstract class BulletType extends Content{
Damage.status(b.team, x, y, splashDamageRadius, status, statusDuration, collidesAir, collidesGround);
}
if(healPercent > 0f) {
if(healPercent > 0f){
indexer.eachBlock(b.team, x, y, splashDamageRadius, other -> other.damaged(), other -> {
Fx.healBlockFull.at(other.x, other.y, other.block.size, Pal.heal);
other.heal(healPercent / 100f * other.maxHealth());
});
}
if(status == StatusEffects.burning) {
if(status == StatusEffects.burning){
indexer.eachBlock(null, x, y, splashDamageRadius, other -> other.team != b.team, other -> {
Fires.create(other.tile);
});
@@ -247,7 +247,7 @@ public abstract class BulletType extends Content{
}
public void init(Bullet b){
if(pierceCap >= 1) {
if(pierceCap >= 1){
pierce = true;
//pierceBuilding is not enabled by default, because a bullet may want to *not* pierce buildings
}

View File

@@ -142,7 +142,7 @@ abstract class BulletComp implements Timedc, Damagec, Hitboxc, Teamc, Posc, Draw
});
}
if(type.pierceCap != -1 && collided.size >= type.pierceCap) {
if(type.pierceCap != -1 && collided.size >= type.pierceCap){
remove();
}
}

View File

@@ -271,7 +271,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
//planet selection
new Table(t -> {
t.right();
if(content.planets().count(p -> p.accessible) > 1) {
if(content.planets().count(p -> p.accessible) > 1){
t.table(Styles.black6, pt -> {
//TODO localize
pt.add("[accent]Planets[]");

View File

@@ -122,7 +122,7 @@ public class PlacementFragment extends Fragment{
for(int i = 0; i < blockSelect.length; i++){
if(Core.input.keyTap(blockSelect[i])){
if(i > 9) { //select block directionally
if(i > 9){ //select block directionally
Seq<Block> blocks = getUnlockedByCategory(currentCategory);
Block currentBlock = getSelectedBlock(currentCategory);
for(int j = 0; j < blocks.size; j++){

View File

@@ -110,7 +110,7 @@ public class TractorBeamTurret extends BaseTurret{
}
@Override
public float efficiency() {
public float efficiency(){
return super.efficiency() * coolant;
}

View File

@@ -11,7 +11,7 @@ public class ArmoredConveyor extends Conveyor{
}
@Override
public boolean blends(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock) {
public boolean blends(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock){
return otherblock.outputsItems() && blendsArmored(tile, rotation, otherx, othery, otherrot, otherblock);
}

View File

@@ -254,7 +254,7 @@ public class Conveyor extends Block implements Autotiler{
noSleep();
}
public boolean pass(Item item) {
public boolean pass(Item item){
if(next != null && next.team == team && next.acceptItem(this, item)){
next.handleItem(this, item);
return true;

View File

@@ -433,7 +433,7 @@ public class LogicBlock extends Block{
}
@Override
public void drawSelect() {
public void drawSelect(){
Groups.unit.each(u -> u.controller() instanceof LogicAI ai && ai.controller == this, unit -> {
Drawf.square(unit.x, unit.y, unit.hitSize, unit.rotation + 45);
});

View File

@@ -65,7 +65,7 @@ public class PowerDiode extends Block{
float frontStored = frontGraph.getBatteryStored() / frontGraph.getTotalBatteryCapacity();
// try to send if the back side has more % capacity stored than the front side
if(backStored > frontStored) {
if(backStored > frontStored){
// send half of the difference
float amount = backGraph.getBatteryStored() * (backStored - frontStored) / 2;
// prevent sending more than the front can handle

View File

@@ -30,7 +30,7 @@ public class Pump extends LiquidBlock{
}
@Override
public void drawPlace(int x, int y, int rotation, boolean valid) {
public void drawPlace(int x, int y, int rotation, boolean valid){
Tile tile = world.tile(x, y);
if(tile == null) return;