connectedPower similar to conductivePower (#8306)

This commit is contained in:
MEEPofFaith
2023-02-15 23:22:05 -05:00
committed by GitHub
parent a8a3453632
commit 348819d1ac
4 changed files with 7 additions and 5 deletions
@@ -1254,7 +1254,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
public void placed(){
if(net.client()) return;
if((block.consumesPower || block.outputsPower) && block.hasPower){
if((block.consumesPower || block.outputsPower) && block.hasPower && block.connectedPower){
PowerNode.getNodeLinks(tile, block, team, other -> {
if(!other.power.links.contains(pos())){
other.configureAny(pos());