Fixed nodes not connecting to batteries when placed
This commit is contained in:
@@ -280,8 +280,8 @@ public class PowerNode extends PowerBlock{
|
|||||||
public void placed(){
|
public void placed(){
|
||||||
if(net.client()) return;
|
if(net.client()) return;
|
||||||
|
|
||||||
Boolf<Building> valid = other -> other != null && other != this && ((!other.block.outputsPower && other.block.consumesPower) ||
|
Boolf<Building> valid = other -> other != null && other != this &&
|
||||||
(other.block.outputsPower && !other.block.consumesPower) || other.block instanceof PowerNode) && linkValid(this, other)
|
(other.block.outputsPower || other.block.consumesPower || other.block instanceof PowerNode) && linkValid(this, other)
|
||||||
&& !other.proximity().contains(this) && other.power.graph != power.graph;
|
&& !other.proximity().contains(this) && other.power.graph != power.graph;
|
||||||
|
|
||||||
tempTileEnts.clear();
|
tempTileEnts.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user