From ee043e67a4a9d3ce1aab0a8c568d45d9f6f849a2 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 13 Nov 2018 22:43:10 -0500 Subject: [PATCH] Probable crash fix --- core/src/io/anuke/mindustry/world/blocks/power/PowerGraph.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();