Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueWeabo committed Jul 26, 2023
1 parent 513eab2 commit 8f6ac11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Add your dependencies here

dependencies {
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.43.142:dev')
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.43.156-pre:dev')
api("com.github.GTNewHorizons:TecTech:5.2.35:dev")
api("com.github.GTNewHorizons:GalacticGregGT5:1.0.9:dev") {
exclude group:"com.github.GTNewHorizons", module:"bartworks"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
import gregtech.api.util.GT_OverclockCalculator;
import gregtech.api.util.GT_ParallelHelper;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;

Expand Down Expand Up @@ -265,10 +264,9 @@ protected ProcessingLogic createProcessingLogic() {

@NotNull
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe,
@NotNull GT_ParallelHelper helper) {
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
// For overclocking we'll allow all power to be used
return super.createOverclockCalculator(recipe, helper).setEUt(getMaxInputEu()).setAmperage(1);
return super.createOverclockCalculator(recipe).setEUt(getMaxInputEu()).setAmperage(1);
}
}.setMaxParallelSupplier(() -> (int) Math.pow(4, Math.max(mBlockTier - 1, 0)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Multiblock_Tooltip_Builder;
import gregtech.api.util.GT_OverclockCalculator;
import gregtech.api.util.GT_ParallelHelper;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;

Expand Down Expand Up @@ -276,10 +275,9 @@ protected ProcessingLogic createProcessingLogic() {

@Nonnull
@Override
protected GT_OverclockCalculator createOverclockCalculator(@Nonnull GT_Recipe recipe,
@Nonnull GT_ParallelHelper helper) {
return super.createOverclockCalculator(recipe, helper).setRecipeHeat(recipe.mSpecialValue)
.setMultiHeat(mHeatingCapacity).enableHeatOC().enableHeatDiscount();
protected GT_OverclockCalculator createOverclockCalculator(@Nonnull GT_Recipe recipe) {
return super.createOverclockCalculator(recipe).setRecipeHeat(recipe.mSpecialValue)
.setMultiHeat(mHeatingCapacity).setHeatOC(true).setHeatDiscount(true);
}

@Override
Expand Down

0 comments on commit 8f6ac11

Please sign in to comment.