From a31e182905097ae8e4d4aa65cc60b0e531afc350 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 27 Oct 2020 14:29:15 -0400 Subject: [PATCH] Fixed nodes not connecting to batteries when placed --- core/src/mindustry/world/blocks/power/PowerNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/power/PowerNode.java b/core/src/mindustry/world/blocks/power/PowerNode.java index d8f8b05f8f..3cba419444 100644 --- a/core/src/mindustry/world/blocks/power/PowerNode.java +++ b/core/src/mindustry/world/blocks/power/PowerNode.java @@ -280,8 +280,8 @@ public class PowerNode extends PowerBlock{ public void placed(){ if(net.client()) return; - Boolf valid = other -> other != null && other != this && ((!other.block.outputsPower && other.block.consumesPower) || - (other.block.outputsPower && !other.block.consumesPower) || other.block instanceof PowerNode) && linkValid(this, other) + Boolf valid = other -> other != null && other != this && + (other.block.outputsPower || other.block.consumesPower || other.block instanceof PowerNode) && linkValid(this, other) && !other.proximity().contains(this) && other.power.graph != power.graph; tempTileEnts.clear();