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

Commit

Permalink
stop compacts from overclocking on-tier recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
GDCloudstrike committed Feb 22, 2024
1 parent 6272558 commit 03b894d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import static gregtech.api.enums.Textures.BlockIcons.*;
import static gregtech.api.util.GT_StructureUtility.filterByMTETier;
import static gregtech.api.util.GT_StructureUtility.ofFrame;
import static gregtech.api.util.GT_Utility.filterValidMTEs;
import static gregtech.api.util.GT_Utility.*;

import java.util.List;

Expand Down Expand Up @@ -449,7 +449,11 @@ protected GT_ParallelHelper createParallelHelper(@NotNull GT_Recipe recipe) {
@NotNull
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return super.createOverclockCalculator(recipe).limitOverclockCount(overclock(recipe.mSpecialValue));
int overclockCount = overclock(recipe.mSpecialValue);
if (GT_Values.VP[LargeFusionComputer.this.tier()] <= roundUpVoltage(recipe.mEUt)) {
overclockCount = 0;
}
return super.createOverclockCalculator(recipe).limitOverclockCount(overclockCount);
}

@NotNull
Expand Down

0 comments on commit 03b894d

Please sign in to comment.