Skip to content

Commit

Permalink
Increase Efficiency of Solid Fuels in Large Boilers
Browse files Browse the repository at this point in the history
  • Loading branch information
IntegerLimit committed Nov 14, 2024
1 parent c0c5b60 commit 224687a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ protected void trySearchNewRecipe() {
for (int i = 0; i < importItems.getSlots(); i++) {
ItemStack stack = importItems.getStackInSlot(i);
int fuelBurnTime = (int) Math.ceil(TileEntityFurnace.getItemBurnTime(stack));
if (fuelBurnTime / 80 > 0) { // try to ensure this fuel can burn for at least 1 tick
if (fuelBurnTime / 8 > 0) { // try to ensure this fuel can burn for at least 1 tick
if (FluidUtil.getFluidHandler(stack) != null) continue;
this.excessFuel += fuelBurnTime % 80;
int excessProgress = this.excessFuel / 80;
this.excessFuel %= 80;
this.excessFuel += fuelBurnTime % 8;
int excessProgress = this.excessFuel / 8;
this.excessFuel %= 8;
setMaxProgress(excessProgress +
adjustBurnTimeForThrottle(boiler.boilerType.runtimeBoost(fuelBurnTime / 80)));
adjustBurnTimeForThrottle(boiler.boilerType.runtimeBoost(fuelBurnTime / 8)));
stack.shrink(1);
didStartRecipe = true;
break;
Expand Down

0 comments on commit 224687a

Please sign in to comment.