Better connection rules

This commit is contained in:
CovertJaguar 2013-06-25 05:23:41 -07:00
parent 8d1b33b268
commit 4f6ba954cd

View file

@ -73,7 +73,16 @@ public class PipeTransportPower extends PipeTransport {
return true;
}
return tile instanceof IPowerReceptor && ((IPowerReceptor)tile).getPowerProvider(side) != null;
if (tile instanceof IPowerReceptor) {
IPowerReceptor receptor = (IPowerReceptor) tile;
PowerProvider provider = receptor.getPowerProvider(side.getOpposite());
if (provider == null)
return false;
if (container.pipe instanceof PipePowerWood || provider.canAcceptPowerFromPipes)
return true;
}
return false;
}
@Override