Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
Fix NPE with Volcanus coil level (#727)
Browse files Browse the repository at this point in the history
* Address deprecations

* Fix NPE with Volcanus coil level
  • Loading branch information
miozune authored Aug 23, 2023
1 parent 565ef33 commit 6e42400
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe re
// Need to multiply by 2 because heat OC is done only once every 1800 and this one does it once
// every
// 900
.setMultiHeat((int) (getCoilLevel().getHeat() * 2));
.setMachineHeat((int) (getCoilLevel().getHeat() * 2));
}
}.setMaxParallelSupplier(this::getMaxParallelRecipes);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected CheckRecipeResult validateRecipe(@NotNull GT_Recipe recipe) {
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return super.createOverclockCalculator(recipe).setHeatOC(true).setHeatDiscount(true)
.setRecipeHeat(recipe.mSpecialValue).setMultiHeat((int) getCoilLevel().getHeat());
.setRecipeHeat(recipe.mSpecialValue).setMachineHeat((int) getCoilLevel().getHeat());
}
}.setSpeedBonus(1F / 2.2F).setEuModifier(0.5F).setMaxParallelSupplier(this::getMaxParallelRecipes);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class GregtechMetaTileEntity_Adv_EBF extends GregtechMeta_MultiBlockBase<
private int mCasing;
private final ArrayList<GT_MetaTileEntity_Hatch_CustomFluidBase> mPyrotheumHatches = new ArrayList<>();

private HeatingCoilLevel mHeatingCapacity;
private HeatingCoilLevel mHeatingCapacity = HeatingCoilLevel.None;

public GregtechMetaTileEntity_Adv_EBF(int aID, String aName, String aNameRegional) {
super(aID, aName, aNameRegional);
Expand Down Expand Up @@ -241,7 +241,7 @@ protected CheckRecipeResult validateRecipe(@NotNull GT_Recipe recipe) {
@Override
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return super.createOverclockCalculator(recipe).setHeatOC(true).setHeatDiscount(true)
.setRecipeHeat(recipe.mSpecialValue).setMultiHeat((int) getCoilLevel().getHeat());
.setRecipeHeat(recipe.mSpecialValue).setMachineHeat((int) getCoilLevel().getHeat());
}
}.setSpeedBonus(1F / 2.2F).setEuModifier(0.9F).setMaxParallelSupplier(this::getMaxParallelRecipes);
}
Expand Down

0 comments on commit 6e42400

Please sign in to comment.