Skip to content

Commit

Permalink
rework Steam Machine logic
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Aug 11, 2021
1 parent 8288ff0 commit 346ce2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/gregtech/api/capability/impl/RecipeLogicSteam.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ protected void completeRecipe() {

@Override
protected int[] calculateOverclock(int EUt, long voltage, int duration) {
if (!isHighPressure) {
//disallow overclocking for low pressure bronze machines
return new int[]{EUt, duration};
}
return super.calculateOverclock(EUt, voltage, duration);
// double duration for normal Steam machines, double EUt for HP Steam
return new int[]{
isHighPressure ? EUt * 2 : EUt,
isHighPressure ? duration : duration * 2
};
}

@Override
Expand Down

0 comments on commit 346ce2c

Please sign in to comment.