From 14c526d0c4bc70d08fcb71755cda12c680f960fa Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 15 Aug 2018 18:41:21 -0400 Subject: [PATCH] Power distribution fix --- core/src/io/anuke/mindustry/world/blocks/power/PowerNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/world/blocks/power/PowerNode.java b/core/src/io/anuke/mindustry/world/blocks/power/PowerNode.java index 7758af1b43..68cf54ffcd 100644 --- a/core/src/io/anuke/mindustry/world/blocks/power/PowerNode.java +++ b/core/src/io/anuke/mindustry/world/blocks/power/PowerNode.java @@ -282,7 +282,7 @@ public class PowerNode extends PowerBlock{ } protected boolean linkValid(Tile tile, Tile link, boolean checkMaxNodes){ - if(!(tile != link && link != null && link.block().hasPower)) return false; + if(!(tile != link && link != null && link.block().hasPower) || tile.getTeamID() != link.getTeamID()) return false; if(link.block() instanceof PowerNode){ DistributorEntity oe = link.entity();