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

Commit

Permalink
hopefully fixed overclocking issues with blast furnace, updated antim…
Browse files Browse the repository at this point in the history
…atter
  • Loading branch information
Trinsdar committed Jul 4, 2024
1 parent 625ae7e commit 02e5e6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ protected void calculateDurations() {
super.calculateDurations();
maxProgress = activeRecipe.getDuration();
overclock = 0;
//Divide by 2, for amps.
int tier = Utils.getVoltageTier(getMaxInputVoltage() / 2);
long voltage = getMaxInputVoltage();
int tier = Math.max(1, Utils.getVoltageTier(voltage));
int recipeTier = Utils.getVoltageTier(activeRecipe.getPower());
if (recipeTier == tier) {
EUt = activeRecipe.getPower();
Expand All @@ -37,10 +37,14 @@ protected void calculateDurations() {
} else {
EUt = activeRecipe.getPower();
maxProgress = activeRecipe.getDuration();
for (int i = 2; i < Ref.V.length; i += 2) {
if (EUt > Ref.V[tier - 1]) break;
int i = 2;
while (EUt <= Ref.V[tier - 1]){
EUt *= 4;
maxProgress /= (heatDiv >= i ? 4 : 2);
i += 2;
}
if (heatDiv > 0){
EUt = (long) (EUt * Math.pow(0.95, heatDiv));
}
}
}
Expand Down

0 comments on commit 02e5e6f

Please sign in to comment.