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

Commit

Permalink
fix (#125)
Browse files Browse the repository at this point in the history
(cherry picked from commit 69e9dc2)
  • Loading branch information
HoleFish authored and Dream-Master committed May 20, 2024
1 parent b66ae82 commit bbfc61c
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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 kubatech.Tags;
import kubatech.api.implementations.KubaTechGTMultiBlockBase;
Expand Down Expand Up @@ -230,12 +229,11 @@ protected CheckRecipeResult validateRecipe(@NotNull GT_Recipe recipe) {
: CheckRecipeResultRegistry.insufficientMachineTier(recipe.mSpecialValue);
}

@NotNull
@Override
protected double calculateDuration(@NotNull GT_Recipe recipe, @NotNull GT_ParallelHelper helper,
@NotNull GT_OverclockCalculator calculator) {
return Math.max(
1d,
super.calculateDuration(recipe, helper, calculator) / ((mTierCasing - recipe.mSpecialValue) + 1));
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return super.createOverclockCalculator(recipe)
.setSpeedBoost(1f / (mTierCasing - recipe.mSpecialValue + 1));
}
};
}
Expand Down

0 comments on commit bbfc61c

Please sign in to comment.