Skip to content

Commit b68d3ff

Browse files
authored
Update MI to 2.3.0 (#82)
1 parent 221d792 commit b68d3ff

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ mod_github=https://github.com/Swedz/tesseract-neoforge
3838
# Dependencies
3939
mixinextras_version=0.3.5
4040
emi_version=1.1.10+1.21
41-
modern_industrialization_version=2.2.31
42-
modern_industrialization_version_range=[2.2.31, 2.3-)
41+
modern_industrialization_version=2.3.0
42+
modern_industrialization_version_range=[2.3-, 2.4-)
4343
grandpower_version=3.0.0
4444
cloth_config_version=15.0.127
4545
ohthetreesyoullgrow_version_range=[5.0.7,)

src/main/java/net/swedz/tesseract/neoforge/compat/mi/component/craft/AbstractModularCrafterComponent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ protected void clearActiveRecipeIfPossible()
417417
protected long getRecipeMaxEu(long recipeEu, long totalEu, int efficiencyTicks)
418418
{
419419
long baseEu = Math.max(this.transformEuCost(behavior.getBaseRecipeEu()), this.transformEuCost(recipeEu));
420-
return Math.min(totalEu, Math.min((int) Math.floor(baseEu * CrafterComponent.getEfficiencyOverclock(efficiencyTicks)), this.transformEuCost(behavior.getMaxRecipeEu())));
420+
long overclockedEu = baseEu + efficiencyTicks * totalEu / (20 * 30);
421+
return Math.min(totalEu, Math.min(overclockedEu, this.transformEuCost(behavior.getMaxRecipeEu())));
421422
}
422423

423424
protected int getRecipeMaxEfficiencyTicks(R recipe)

0 commit comments

Comments
 (0)