diff --git a/core/src/mindustry/world/blocks/power/PowerGraph.java b/core/src/mindustry/world/blocks/power/PowerGraph.java index 7c5a3f26c8..11710107eb 100644 --- a/core/src/mindustry/world/blocks/power/PowerGraph.java +++ b/core/src/mindustry/world/blocks/power/PowerGraph.java @@ -259,6 +259,13 @@ public class PowerGraph{ public void addGraph(PowerGraph graph){ if(graph == this) return; + + //merge into other graph instead. + if(graph.all.size > all.size){ + graph.addGraph(this); + return; + } + //other entity should be removed as the graph was merged if(graph.entity != null) graph.entity.remove();