Slightly cleanup the safety check for turbine casing
@@ -58,10 +58,11 @@ public class TileEntityTurbineCasing extends TileEntityMultiblock<SynchronizedTu
if (stored > 0 && !energyNeeded.isZero()) {
FloatingLong energyMultiplier = MekanismConfig.general.maxEnergyPerSteam.get().divide(TurbineUpdateProtocol.MAX_BLADES)
.multiply(Math.min(structure.blades, structure.coils * MekanismGeneratorsConfig.generators.turbineBladesPerCoil.get()));
+ if (energyMultiplier.isZero()) {
+ structure.clientFlow = 0;
+ } else {
double rate = structure.lowerVolume * (structure.getDispersers() * MekanismGeneratorsConfig.generators.turbineDisperserGasFlow.get());
rate = Math.min(rate, structure.vents * MekanismGeneratorsConfig.generators.turbineVentGasFlow.get());
-
- if (!energyMultiplier.isZero()) {
double proportion = stored / (double) structure.getSteamCapacity();
double origRate = rate;
rate = Math.min(Math.min(stored, rate), energyNeeded.divide(energyMultiplier).doubleValue()) * proportion;
