mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 06:42:56 +00:00
Fix Turbine Casing NPE
Fixes Turbine Casing causing NullPointException when structure is invalid.
This commit is contained in:
1 parent
6852f791e6
commit
6ddd2c5ee2
1 file changed
+3
-1
@@ -147,7 +147,9 @@ public class TileEntityTurbineCasing extends TileEntityMultiblock<SynchronizedTu
|
||||
@Override
|
||||
public double getMaxEnergy()
|
||||
{
|
||||
return structure.getEnergyCapacity();
|
||||
if(structure != null)
|
||||
return structure.getEnergyCapacity();
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user