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

@@ -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;