@@ -219,9 +219,8 @@ public interface Autotiler{
|
||||
/**
|
||||
* Check if a position is facing the secondary position at a rotation
|
||||
*
|
||||
* @param tile The origin tile that is or is not facing the destinated `otherblock`
|
||||
* @param tile The origin tile that is or is not facing the `otherblock`
|
||||
* @param rotation The rotation of the tile on (x, y)
|
||||
*
|
||||
* @param otherx The x coordinate of position 2
|
||||
* @param othery The y coordinate of position 2
|
||||
* @return whether this tile is looking at the other tile.
|
||||
|
||||
@@ -12,7 +12,8 @@ public class ArmoredConveyor extends Conveyor{
|
||||
|
||||
@Override
|
||||
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);
|
||||
return (otherblock.outputsItems() && blendsArmored(tile, rotation, otherx, othery, otherrot, otherblock)) ||
|
||||
(lookingAt(tile, rotation, otherx, othery, otherblock) && otherblock.hasItems);
|
||||
}
|
||||
|
||||
public class ArmoredConveyorBuild extends ConveyorBuild{
|
||||
|
||||
@@ -16,7 +16,8 @@ public class ArmoredConduit extends Conduit{
|
||||
|
||||
@Override
|
||||
public boolean blends(Tile tile, int rotation, int otherx, int othery, int otherrot, Block otherblock){
|
||||
return otherblock.outputsLiquid && blendsArmored(tile, rotation, otherx, othery, otherrot, otherblock);
|
||||
return (otherblock.outputsLiquid && blendsArmored(tile, rotation, otherx, othery, otherrot, otherblock)) ||
|
||||
(lookingAt(tile, rotation, otherx, othery, otherblock) && otherblock.hasLiquids);
|
||||
}
|
||||
|
||||
public class ArmoredConduitBuild extends ConduitBuild{
|
||||
@@ -24,7 +25,7 @@ public class ArmoredConduit extends Conduit{
|
||||
public void draw(){
|
||||
super.draw();
|
||||
|
||||
// draw the cap when a conduit would normally leak
|
||||
//draw the cap when a conduit would normally leak
|
||||
Building next = front();
|
||||
if(next != null && next.team == team && next.block.hasLiquids) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user