Add missing null structure check.

Fixes #4522
This commit is contained in:
Tom Elfring committed 2017-07-10 18:27:41 +02:00
1 parent 5e17742c45
commit 3cfe0ee0d6
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