Skip to content

Commit

Permalink
Comment reorganization and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dloe committed Sep 12, 2024
1 parent 72dbc6b commit 8259867
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 160 deletions.
7 changes: 2 additions & 5 deletions core/src/mindustry/entities/comp/BuildingComp.java
Original file line number Diff line number Diff line change
Expand Up @@ -878,18 +878,15 @@ public void transferLiquid(Building next, float amount, Liquid liquid){
* @param liquid
* @return output flow
*/
public float moveLiquidForwardDummy(Liquid liquid)
{
public float moveLiquidForwardDummy(Liquid liquid) {
Tile next = tile.nearby(rotation);
Building nextB;
if(next == null) return 0;

nextB = next.build.getLiquidDestination(self(), liquid);
float flow = 10.0F;


if(nextB.acceptLiquid(self(), liquid))
{
if(nextB.acceptLiquid(self(), liquid)){
nextB.handleLiquid(self(), liquid, flow);
liquids.remove(liquid, flow);
}
Expand Down
5 changes: 1 addition & 4 deletions core/src/mindustry/world/Tile.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ public Tile(int x, int y, int floor, int overlay, int wall){
}

/** Constructor used primarily in mocking scenarios in test suites. */
public Tile()
{
block = floor = overlay = (Floor)Blocks.air;
}
public Tile() { block = floor = overlay = (Floor)Blocks.air; }

/** Mocking scenarios in test suites. */
public void constructTile(Tile tile)
Expand Down
Loading

0 comments on commit 8259867

Please sign in to comment.