Skip to content

Commit

Permalink
Fix / by zero exp if replenish rate was 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Srdjan-V committed Aug 28, 2022
1 parent 56e0f3f commit 69a6350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public void setRecipe(IRecipeLayout recipeLayout, PumpjackWrapper recipeWrapper,
outputGuiFluids.init(0, false, 12, 10, 16, 47, recipeWrapper.getMaxFluid(), false, null);
outputGuiFluids.set(0, recipeWrapper.getAverageFluid());

outputGuiFluids.init(1, false, 36, 10, 16, 47, recipeWrapper.getMaxFluidReplenishRate(), false, null);
outputGuiFluids.set(1, recipeWrapper.getAverageReplenishFluid());
outputGuiFluids.init(1, false, 36, 10, 16, 47, recipeWrapper.getPumpSpeed(), false, null);
outputGuiFluids.set(1, recipeWrapper.getReplenishRateFluid());

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public Fluid getReservoirFluid() {
return reservoirFluid;
}

public FluidStack getAverageReplenishFluid() {
public FluidStack getReplenishRateFluid() {
return new FluidStack(reservoirFluid, reservoir.getReplenishRate());
}

public int getMaxFluidReplenishRate() {
return reservoir.getReplenishRate();
public int getPumpSpeed() {
return reservoir.getPumpSpeed();
}

public int getMinFluid() {
Expand Down

0 comments on commit 69a6350

Please sign in to comment.