diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2020-09-09 08:04:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 08:04:03 +0800 |
commit | edbf6cb86a352a4b84a09f85b5869ba41ba35563 (patch) | |
tree | 00c9f913bd601e02f9f708764ebc318cbe8d2167 | |
parent | 9c7f9fa6e4ab8d1ad45f43c59ee27ebade3011b8 (diff) | |
download | GT5-Unofficial-edbf6cb86a352a4b84a09f85b5869ba41ba35563.tar.gz GT5-Unofficial-edbf6cb86a352a4b84a09f85b5869ba41ba35563.tar.bz2 GT5-Unofficial-edbf6cb86a352a4b84a09f85b5869ba41ba35563.zip |
Fix GTNewHorizons/GT-New-Horizons-Modpack#6586
This makes it waste the extra fuel value, give the optimal output advertised on tooltip and always have an efficiency of 100%.
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java index 8e29d620c3..4bd44ef80c 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java @@ -88,6 +88,17 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT FluidStack firstFuelType = new FluidStack(aFluids.get(0), 0); // Identify a SINGLE type of fluid to process. Doesn't matter which one. Ignore the rest! int fuelValue = getFuelValue(firstFuelType); + + if (aOptFlow < fuelValue) { + // turbine too weak and/or fuel too powerful + // at least consume 1L + this.realOptFlow = 1; + // wastes the extra fuel and generate aOptFlow directly + depleteInput(new FluidStack(firstFuelType, 1)); + this.storedFluid += 1; + return GT_Utility.safeInt((long)aOptFlow * (long)aBaseEff / 10000L); + } + actualOptimalFlow = GT_Utility.safeInt((long)aOptFlow / fuelValue); this.realOptFlow = actualOptimalFlow; |