Skip to content

Commit

Permalink
Fix standard OC modifier for EUt outputs (#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
krossgg authored Sep 24, 2024
1 parent ad1113c commit c5764e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static GTRecipe applyOverclock(OverclockingLogic logic, @NotNull GTRecipe
}
EUt = getOutputEUt(recipe);
if (EUt > 0) {
performOverclocking(logic, recipe, EUt, maxOverclockVoltage, params, result);
performOverclocking(logic, recipe, -EUt, maxOverclockVoltage, params, result);
}
return recipe;
}
Expand All @@ -95,7 +95,7 @@ public static GTRecipe applyOverclock(OverclockingLogic logic, @NotNull GTRecipe
public static void performOverclocking(OverclockingLogic logic, @NotNull GTRecipe recipe, long EUt,
long maxOverclockVoltage,
@NotNull OCParams params, @NotNull OCResult result) {
int recipeTier = GTUtil.getTierByVoltage(EUt);
int recipeTier = GTUtil.getTierByVoltage(Math.abs(EUt));
int maximumTier = logic.getOverclockForTier(maxOverclockVoltage);
// The maximum number of overclocks is determined by the difference between the tier the recipe is running at,
// and the maximum tier that the machine can overclock to.
Expand Down

0 comments on commit c5764e5

Please sign in to comment.