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

Commit

Permalink
fix overflow cal when max input voltage over max (#80)
Browse files Browse the repository at this point in the history
* fix overflow cal when max input voltage over max

* int - 1
  • Loading branch information
GlodBlock authored Sep 16, 2022
1 parent ebae792 commit c963311
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public boolean checkRecipe_EM(ItemStack itemStack) {
this.mEfficiencyIncrease = 10000;
tRecipe.isRecipeInputEqual(true, inputFluids, getStoredItemFromHatch(bus));
mOutputItems = tRecipe.mOutputs;
calculateOverclockedNessMulti(
calculateOverclockedNessMultiPara(
tRecipe.mEUt,
tRecipe.mDuration,
1,
Expand Down Expand Up @@ -234,7 +234,7 @@ public boolean checkRecipe_EM(ItemStack itemStack) {
}
mOutputItems = Outputs.getValue().toArray(new ItemStack[0]);
calculateOverclockedNessMultiPara(
(int) lEUt, time, 1, Math.min(Integer.MAX_VALUE, getMaxInputEnergy_EM()));
(int) lEUt, time, 1, Math.min(Integer.MAX_VALUE - 1, getMaxInputEnergy_EM()));
this.updateSlots();
if (this.mEUt > 0) {
this.mEUt = (-this.mEUt);
Expand Down

0 comments on commit c963311

Please sign in to comment.