@@ -22,7 +22,7 @@ public class PowerTurret extends Turret{
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
consumes.powerCond(powerUse, entity -> ((TurretBuild)entity).target != null);
|
||||
consumes.powerCond(powerUse, (TurretBuild entity) -> entity.target != null || (entity.logicControlled() && entity.logicShooting));
|
||||
super.init();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@ public class ArmoredConduit extends Conduit{
|
||||
|
||||
@Override
|
||||
public boolean acceptLiquid(Building source, Liquid liquid, float amount){
|
||||
return super.acceptLiquid(source, liquid, amount) && (source.block instanceof Conduit) ||
|
||||
Edges.getFacingEdge(source.tile(), tile).absoluteRelativeTo(tile.x, tile.y) == rotation;
|
||||
return super.acceptLiquid(source, liquid, amount) && (source.block instanceof Conduit ||
|
||||
source.tile.absoluteRelativeTo(tile.x, tile.y) == rotation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user