Probable crash fix
This commit is contained in:
@@ -94,7 +94,7 @@ public class PowerGraph{
|
|||||||
|
|
||||||
public void clear(){
|
public void clear(){
|
||||||
for(Tile other : all){
|
for(Tile other : all){
|
||||||
other.entity.power.graph = null;
|
if(other.entity != null && other.entity.power != null) other.entity.power.graph = null;
|
||||||
}
|
}
|
||||||
all.clear();
|
all.clear();
|
||||||
producers.clear();
|
producers.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user