Skip to content

Commit

Permalink
Fix Coil parallel logic to meet new coil update
Browse files Browse the repository at this point in the history
  • Loading branch information
YiRanMushroom committed Mar 2, 2024
1 parent f579a90 commit e03bd8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mod_name=GregTech Community Edition Unofficial Additional Opportunities
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT License
# The mod version. See https://semver.org/
mod_version=2.2.1-build_16
mod_version=2.2.1-build_17
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public static GTRecipe ebfOverclock(MetaMachine machine, @Nonnull GTRecipe recip
recipe = result.getA() == recipe ? result.getA().copy() : result.getA();

return RecipeHelper.applyOverclock(new OverclockingLogic((recipe1, recipeEUt, maxVoltage, duration, amountOC) -> OverclockingLogic.heatingCoilOverclockingLogic(
Math.abs(recipeEUt),
maxVoltage,
duration,
amountOC,
blastFurnaceTemperature,
recipe1.data.contains("ebf_temp") ? recipe1.data.getInt("ebf_temp") : 0
Math.abs(recipeEUt),
maxVoltage,
duration,
amountOC,
blastFurnaceTemperature,
recipe1.data.contains("ebf_temp") ? recipe1.data.getInt("ebf_temp") : 0
)), recipe, coilMachine.getMaxVoltage());

}
Expand Down Expand Up @@ -116,14 +116,16 @@ public static int getParallelAmountByCoilType(ICoilType coilType) {
return 16;
} else if (coilType.equals(NICHROME)) {
return 64;
} else if (coilType.equals(HSSG)) {
} else if (coilType.equals(RTMALLOY)) {
return 256;
} else if (coilType.equals(NAQUADAH)) {
} else if (coilType.equals(HSSG)) {
return 1024;
} else if (coilType.equals(TRINIUM)) {
} else if (coilType.equals(NAQUADAH)) {
return 4096;
} else if (coilType.equals(TRITANIUM)) {
} else if (coilType.equals(TRINIUM)) {
return 16384;
} else if (coilType.equals(TRITANIUM)) {
return 65536;
}
return 1;
}
Expand Down

0 comments on commit e03bd8f

Please sign in to comment.