Merge pull request #194 from Thorfusion/NPE-Fix

Fix Turbine Casing NPE
This commit is contained in:
maggi373 authored and GitHub committed 2024-11-25 04:39:22 +01:00
commit aa5102a342
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