Removed spaces in brackets
This commit is contained in:
@@ -110,7 +110,7 @@ public class TractorBeamTurret extends BaseTurret{
|
||||
}
|
||||
|
||||
@Override
|
||||
public float efficiency() {
|
||||
public float efficiency(){
|
||||
return super.efficiency() * coolant;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user