Fixed crash when a power network is destroyed before being initialized.

This commit is contained in:
CrazyPants committed 2014-08-30 14:24:13 +08:00
1 parent 18e48e8d60
commit edd24e94e9
1 file changed
+3 -1
@@ -42,7 +42,9 @@ public class PowerConduitNetwork extends AbstractConduitNetwork<IPowerConduit, I
for (IPowerConduit con : conduits) {
con.setActive(false);
}
powerManager.onNetworkDestroyed();
if(powerManager != null) {
powerManager.onNetworkDestroyed();
}
super.destroyNetwork();
}