mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 19:39:14 +00:00
Fixed crash when a power network is destroyed before being initialized.
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user