diff options
author | BlueWeabo <ilia.iliev2005@gmail.com> | 2023-07-29 03:20:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-29 02:20:24 +0200 |
commit | 3b37fc1f1b4b0ed250a0cde6c397bad413d0c698 (patch) | |
tree | 795ff5d0481e98fa764cd89317d52c1e3e304082 /src/main/java/goodgenerator/blocks/tileEntity/base | |
parent | 552231625c65429db01eafc81979bf337237258a (diff) | |
download | GT5-Unofficial-3b37fc1f1b4b0ed250a0cde6c397bad413d0c698.tar.gz GT5-Unofficial-3b37fc1f1b4b0ed250a0cde6c397bad413d0c698.tar.bz2 GT5-Unofficial-3b37fc1f1b4b0ed250a0cde6c397bad413d0c698.zip |
Use new API from GT5u (#188)
* use new API from gt5u
* made precise assembler not speed boost in precise mode
* fix neutron activator having infinite parallels
* update dep
Diffstat (limited to 'src/main/java/goodgenerator/blocks/tileEntity/base')
-rw-r--r-- | src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java b/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java index 694ee9e7ac..abedd9ea1c 100644 --- a/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java +++ b/src/main/java/goodgenerator/blocks/tileEntity/base/LargeFusionComputer.java @@ -433,22 +433,13 @@ public abstract class LargeFusionComputer extends GT_MetaTileEntity_TooltipMulti @Override protected GT_ParallelHelper createParallelHelper(@NotNull GT_Recipe recipe) { // When the fusion first loads and is still processing, it does the recipe check without consuming. - if (mRunningOnLoad) { - return new GT_ParallelHelper().setRecipe(recipe).setItemInputs(inputItems) - .setFluidInputs(inputFluids).setAvailableEUt(availableVoltage * availableAmperage) - .setMachine(machine, protectItems, protectFluids) - .setRecipeLocked(recipeLockableMachine, isRecipeLocked).setMaxParallel(maxParallel) - .enableBatchMode(batchSize).enableOutputCalculation(); - } - return super.createParallelHelper(recipe); + return super.createParallelHelper(recipe).setConsumption(!mRunningOnLoad); } @NotNull @Override - protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe, - @NotNull GT_ParallelHelper helper) { - return super.createOverclockCalculator(recipe, helper) - .limitOverclockCount(overclock(recipe.mSpecialValue)); + protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) { + return super.createOverclockCalculator(recipe).limitOverclockCount(overclock(recipe.mSpecialValue)); } @NotNull |