Better connection rules
This commit is contained in:
parent
8d1b33b268
commit
4f6ba954cd
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue