Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added a config for how fast the blast furnace consume fuels compared …
…to charcoal forge (defaults to 4x, Closes #635).
  • Loading branch information
DisasterMoo committed Dec 9, 2019
1 parent deade2c commit bdb10a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main/java/net/dries007/tfc/ConfigTFC.java
Expand Up @@ -112,6 +112,11 @@ public static class GeneralCFG
@Config.LangKey("config." + MOD_ID + ".general.bloomeryTime")
public int bloomeryTime = 15000;

@Config.Comment("How fast the blast furnace consume fuels (compared to the charcoal forge).")
@Config.RangeDouble(min = 0.1D)
@Config.LangKey("config." + MOD_ID + ".general.blastFurnaceConsumption")
public double blastFurnaceConsumption = 4;

@Config.Comment("Percentage chance that plants will grow each update. Smaller number = slower.")
@Config.RangeDouble(min = 0d, max = 1d)
@Config.LangKey("config." + MOD_ID + ".general.plantGrowthRate")
Expand Down
Expand Up @@ -274,7 +274,7 @@ public void update()
ItemStack fuelStack = fuelStacks.get(0);
fuelStacks.remove(0);
Fuel fuel = FuelManager.getFuel(fuelStack);
burnTicksLeft = fuel.getAmount();
burnTicksLeft = (int) (Math.ceil(fuel.getAmount() / ConfigTFC.GENERAL.blastFurnaceConsumption));
burnTemperature = fuel.getTemperature();
this.markDirty();
}
Expand Down

0 comments on commit bdb10a4

Please sign in to comment.