Skip to content

Commit 346ce2c

Browse files
committed
rework Steam Machine logic
1 parent 8288ff0 commit 346ce2c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/gregtech/api/capability/impl/RecipeLogicSteam.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ protected void completeRecipe() {
160160

161161
@Override
162162
protected int[] calculateOverclock(int EUt, long voltage, int duration) {
163-
if (!isHighPressure) {
164-
//disallow overclocking for low pressure bronze machines
165-
return new int[]{EUt, duration};
166-
}
167-
return super.calculateOverclock(EUt, voltage, duration);
163+
// double duration for normal Steam machines, double EUt for HP Steam
164+
return new int[]{
165+
isHighPressure ? EUt * 2 : EUt,
166+
isHighPressure ? duration : duration * 2
167+
};
168168
}
169169

170170
@Override

0 commit comments

Comments
 (0)