Skip to content

Commit

Permalink
fix issues in UniversalDistillationBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Aug 10, 2021
1 parent 30cf93c commit b37cdf2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public UniversalDistillationRecipeBuilder copy() {
@Override
public void buildAndRegister() {
for (int i = 0; i < fluidOutputs.size(); i++) {
IntCircuitRecipeBuilder builder = RecipeMaps.DISTILLERY_RECIPES.recipeBuilder().copy().EUt(this.EUt / 4).circuitMeta(i + 1);
IntCircuitRecipeBuilder builder = RecipeMaps.DISTILLERY_RECIPES.recipeBuilder().copy().EUt(Math.max(1, this.EUt / 4)).circuitMeta(i + 1);

int ratio = getRatioForDistillery(this.fluidInputs.get(0), this.fluidOutputs.get(i), this.outputs.size() > 0 ? this.outputs.get(0) : null);

Expand All @@ -47,7 +47,7 @@ public void buildAndRegister() {
if (shouldDivide && fluidsDivisible)
builder.fluidInputs(dividedInputFluid)
.fluidOutputs(dividedOutputFluid)
.duration(recipeDuration / ratio);
.duration(Math.max(1, recipeDuration / ratio));

else if (!shouldDivide) {
builder.fluidInputs(this.fluidInputs.get(0))
Expand Down

0 comments on commit b37cdf2

Please sign in to comment.