diff --git a/core/src/io/anuke/mindustry/world/blocks/power/PowerGraph.java b/core/src/io/anuke/mindustry/world/blocks/power/PowerGraph.java index 5fecfbeba3..b0c90960eb 100644 --- a/core/src/io/anuke/mindustry/world/blocks/power/PowerGraph.java +++ b/core/src/io/anuke/mindustry/world/blocks/power/PowerGraph.java @@ -94,7 +94,7 @@ public class PowerGraph{ public void clear(){ for(Tile other : all){ - other.entity.power.graph = null; + if(other.entity != null && other.entity.power != null) other.entity.power.graph = null; } all.clear(); producers.clear();