diff options
author | Martin Robertz <dream-master@gmx.net> | 2021-07-05 22:38:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 22:38:11 +0200 |
commit | 08d65f9200e5158479c6f563214f662f258dc7d1 (patch) | |
tree | 1267063297ed0a861900b16b5cf40a129e0c77e0 /src/main/java/gregtech/api/graphs/paths | |
parent | f3f6d64b52ce67e1cb97aec2953b2ae70b1e2638 (diff) | |
parent | c31ba09f8fb68b02879dc2934f3e23d38c3f1ff6 (diff) | |
download | GT5-Unofficial-08d65f9200e5158479c6f563214f662f258dc7d1.tar.gz GT5-Unofficial-08d65f9200e5158479c6f563214f662f258dc7d1.tar.bz2 GT5-Unofficial-08d65f9200e5158479c6f563214f662f258dc7d1.zip |
Merge pull request #590 from GTNewHorizons/beter-power-net
fix overvolatage null crach
Diffstat (limited to 'src/main/java/gregtech/api/graphs/paths')
-rw-r--r-- | src/main/java/gregtech/api/graphs/paths/PowerNodePath.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java index a91f9b10a8..96f1cdfd68 100644 --- a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java +++ b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java @@ -40,7 +40,9 @@ public class PowerNodePath extends NodePath { for (MetaPipeEntity tCable : mPipes) { if (((GT_MetaPipeEntity_Cable)tCable).mVoltage < this.mVoltage) { BaseMetaPipeEntity tBaseCable = (BaseMetaPipeEntity) tCable.getBaseMetaTileEntity(); - tBaseCable.setToFire(); + if (tBaseCable != null) { + tBaseCable.setToFire(); + } } } } |