Merge pull request #4524 from thommy101/issue-4522

Add missing null structure check.
This commit is contained in:
Aidan authored and GitHub committed 2017-07-11 14:09:50 -07:00
commit 8a7f5fb19c
1 file changed
+1 -1
@@ -151,7 +151,7 @@ public class TileEntityTurbineCasing extends TileEntityMultiblock<SynchronizedTu
@Override
public double getMaxEnergy()
{
return structure.getEnergyCapacity();
return structure != null ? structure.getEnergyCapacity() : 0;
}
@Override