From 7859a7053e1710ac09c0a60a57d149fa07afcf68 Mon Sep 17 00:00:00 2001 From: Daniel Mendes <70096037+Steelux8@users.noreply.github.com> Date: Sun, 13 Aug 2023 14:30:43 +0100 Subject: More LFTR Chain Fixes (#716) * Fix LFTR powergen without fuel - Override "process" from ProcessingLogic to execute the new "resetMultiProcessing" method before returning NO_Recipe; - Add new "resetMultiProcessing" method to reset EU/t value, progress, recipe and shut down the LFTR when inputs aren't enough. * Fix Sparge Tower OC and 10x speed bonus - Changed voltage calculation to actually allow overclocking with 2 energy hatches, which the Sparge Tower already accepted; - Removed the 10x speed bonus the multi had for seemingly no reason, and reduced recipe time by 10x, from 250s to 25s, on all of its recipes to compensate. * Fix Sparge Tower energy handling - Set lEUt to negative to properly consume energy, since the old logic used a positive lEUt value, which corresponds to EU generation, not consumption. * Tweaked Fuel Refinery required hatches - Removed the Output Bus requirement, as there are no item outputs in this recipe map; - Changed the fluid hatch count to minimum 2 input and 1 output, which is enough for Refinery recipes. Left the maximum at the previous 4 input and 2 output, to keep existing structures working and for setups that produce two fuels per Refinery. * Downscaled longest Refinery recipes - Changed the two very long Refinery recipes, so that fluid amounts are 10x lower in input and output, alongside a 10x smaller duration, to make them more manageable, and less punishing if the multi voids for some reason. * Apply spotless * Requested fixes * spotlessApply (#720) Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/main/java/gregtech/api/util/GasSpargingRecipe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/gregtech/api/util') diff --git a/src/main/java/gregtech/api/util/GasSpargingRecipe.java b/src/main/java/gregtech/api/util/GasSpargingRecipe.java index 304dd24384..55eb828e3e 100644 --- a/src/main/java/gregtech/api/util/GasSpargingRecipe.java +++ b/src/main/java/gregtech/api/util/GasSpargingRecipe.java @@ -28,7 +28,7 @@ public class GasSpargingRecipe implements Comparable { aOutputs = ArrayUtils.insertElementAtIndex(aOutputs, 1, aSpargedFuel); mFluidOutputs = aOutputs; mMaxOutputQuantity = aMaxOutputQuantity; - mDuration = 500 * 10; // Actual recipe time is 10x less than this number, not sure why + mDuration = 500; mEUt = MaterialUtils.getVoltageForTier(5); } -- cgit