aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorStaffiX <32968022+StaffiX@users.noreply.github.com>2024-11-23 15:10:37 +0100
committerGitHub <noreply@github.com>2024-11-23 14:10:37 +0000
commit65f01576cae54415ada2153d6b013543e14ea3c4 (patch)
treee213959fddbfc4c9222804add60681a46ed0e470 /src/main
parentd1cb09ae0925d6e67784ab541da2ec90f4671153 (diff)
downloadGT5-Unofficial-65f01576cae54415ada2153d6b013543e14ea3c4.tar.gz
GT5-Unofficial-65f01576cae54415ada2153d6b013543e14ea3c4.tar.bz2
GT5-Unofficial-65f01576cae54415ada2153d6b013543e14ea3c4.zip
Fix SOFC Mk2 fuel efficiency (#3532)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/kekztech/common/tileentities/MTESOFuelCellMK2.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/kekztech/common/tileentities/MTESOFuelCellMK2.java b/src/main/java/kekztech/common/tileentities/MTESOFuelCellMK2.java
index b7dd5b5652..8c4afee48e 100644
--- a/src/main/java/kekztech/common/tileentities/MTESOFuelCellMK2.java
+++ b/src/main/java/kekztech/common/tileentities/MTESOFuelCellMK2.java
@@ -97,7 +97,7 @@ public class MTESOFuelCellMK2 extends MTEEnhancedMultiBlockBase<MTESOFuelCellMK2
+ "EU worth of fuel with up to 100% efficiency each second")
.addInfo("Nitrobenzene and other gas fuels above 1M EU/bucket are more efficient")
.addInfo("Steam production requires the SOFC to heat up completely first")
- .addInfo("Outputs " + EU_PER_TICK + "EU/t and " + STEAM_PER_SEC + "L/s Steam")
+ .addInfo("Outputs " + EU_PER_TICK + "EU/t and " + STEAM_PER_SEC + "L/s Superheated Steam")
.addInfo("Additionally, requires " + OXYGEN_PER_SEC + "L/s Oxygen gas")
.beginStructureBlock(3, 3, 5, false)
.addController("Front center")
@@ -158,7 +158,8 @@ public class MTESOFuelCellMK2 extends MTEEnhancedMultiBlockBase<MTESOFuelCellMK2
if ((liquid = GTUtility.getFluidForFilledItem(aFuel.getRepresentativeInput(0), true)) != null
&& hatchFluid.isFluidEqual(liquid)) {
- liquid.amount = (EU_PER_TICK * 20) / aFuel.mSpecialValue / Math.max(1, aFuel.mSpecialValue / 1000);
+ liquid.amount = (int) ((EU_PER_TICK * 20)
+ / (aFuel.mSpecialValue * Math.max(1, (float) aFuel.mSpecialValue / 1000)));
if (super.depleteInput(liquid)) {
@@ -170,7 +171,7 @@ public class MTESOFuelCellMK2 extends MTEEnhancedMultiBlockBase<MTESOFuelCellMK2
super.mEUt = EU_PER_TICK;
super.mMaxProgresstime = 20;
- super.mEfficiencyIncrease = 80;
+ super.mEfficiencyIncrease = 200;
if (super.mEfficiency == getMaxEfficiency(null)) {
super.addOutput(FluidRegistry.getFluidStack("ic2superheatedsteam", STEAM_PER_SEC));
}