From 201ce276cd692fc655f668e03b53e09f9082984a Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Wed, 12 Oct 2022 04:57:08 -0700 Subject: [PATCH] Diodes can work on the wrong tream (#7698) * Diodes can work on the wrong tream * Don't need that check anymore --- core/src/mindustry/world/blocks/power/PowerDiode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/power/PowerDiode.java b/core/src/mindustry/world/blocks/power/PowerDiode.java index 742fde4fd2..5fa2e1ba50 100644 --- a/core/src/mindustry/world/blocks/power/PowerDiode.java +++ b/core/src/mindustry/world/blocks/power/PowerDiode.java @@ -56,7 +56,7 @@ public class PowerDiode extends Block{ public void updateTile(){ super.updateTile(); - if(tile == null || front() == null || back() == null || !back().block.hasPower || !front().block.hasPower || back().team != front().team) return; + if(tile == null || front() == null || back() == null || !back().block.hasPower || !front().block.hasPower || back().team != team || front().team != team) return; PowerGraph backGraph = back().power.graph; PowerGraph frontGraph = front().power.graph;