Skip to content

Commit

Permalink
review comments and minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 committed Jul 4, 2024
1 parent 0e07890 commit 77345be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,13 +686,11 @@ protected static boolean areItemStacksEqual(@NotNull ItemStack stackA, @NotNull
modifyOverclockPost(ocResult, recipe.getRecipePropertyStorage());

if (ocResult.parallel() > 1) {
Recipe r = subTickOC(ocResult, recipe, importInventory, importFluids);
if (r == null) {
recipe = subTickOC(ocResult, recipe, importInventory, importFluids);
if (recipe == null) {
invalidateInputs();
return null;
}

recipe = r;
}

if (!hasEnoughPower(ocResult.eut(), ocResult.duration())) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/gregtech/api/recipes/RecipeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,8 @@ public R append(Recipe recipe, int multiplier, boolean multiplyDuration) {
this.duration(multiplyDuration ? this.duration + recipe.getDuration() * multiplier : recipe.getDuration());
if (this.parallel == 0) {
this.parallel = multiplier;
} else if (multiplyDuration) {
this.parallel += multiplier;
} else {
this.parallel *= multiplier;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected void modifyOverclockPost(@NotNull OCResult ocResult, @NotNull IRecipeP
return;

if (coilTier == 0) {
// 25% slower with cupronickel (coilTier = 0)
// 75% speed with cupronickel (coilTier = 0)
ocResult.setDuration(Math.max(1, (int) (ocResult.duration() * 4.0 / 3)));
} else {
// each coil above kanthal (coilTier = 1) is 50% faster
Expand Down

0 comments on commit 77345be

Please # to comment.