Skip to content

Commit c5764e5

Browse files
authored
Fix standard OC modifier for EUt outputs (#2023)
1 parent ad1113c commit c5764e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/gregtechceu/gtceu/api/recipe/RecipeHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static GTRecipe applyOverclock(OverclockingLogic logic, @NotNull GTRecipe
8181
}
8282
EUt = getOutputEUt(recipe);
8383
if (EUt > 0) {
84-
performOverclocking(logic, recipe, EUt, maxOverclockVoltage, params, result);
84+
performOverclocking(logic, recipe, -EUt, maxOverclockVoltage, params, result);
8585
}
8686
return recipe;
8787
}
@@ -95,7 +95,7 @@ public static GTRecipe applyOverclock(OverclockingLogic logic, @NotNull GTRecipe
9595
public static void performOverclocking(OverclockingLogic logic, @NotNull GTRecipe recipe, long EUt,
9696
long maxOverclockVoltage,
9797
@NotNull OCParams params, @NotNull OCResult result) {
98-
int recipeTier = GTUtil.getTierByVoltage(EUt);
98+
int recipeTier = GTUtil.getTierByVoltage(Math.abs(EUt));
9999
int maximumTier = logic.getOverclockForTier(maxOverclockVoltage);
100100
// The maximum number of overclocks is determined by the difference between the tier the recipe is running at,
101101
// and the maximum tier that the machine can overclock to.

0 commit comments

Comments
 (0)