Skip to content

Commit

Permalink
improve EBF formStructure() a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Dec 2, 2024
1 parent 395de04 commit 8c9a6bd
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,8 @@ private Consumer<List<IDrawable>> addHeatCapacity(IntSyncValue temp) {
@Override
protected void formStructure(PatternMatchContext context) {
super.formStructure(context);
Object type = context.get("CoilType");
if (type instanceof IHeatingCoilBlockStats) {
this.blastFurnaceTemperature = ((IHeatingCoilBlockStats) type).getCoilTemperature();
} else {
this.blastFurnaceTemperature = CoilType.CUPRONICKEL.getCoilTemperature();
}
IHeatingCoilBlockStats type = context.getOrDefault("CoilType", CoilType.CUPRONICKEL);
this.blastFurnaceTemperature = type.getCoilTemperature();
// the subtracted tier gives the starting level (exclusive) of the +100K heat bonus
this.blastFurnaceTemperature += 100 *
Math.max(0, GTUtility.getFloorTierByVoltage(getEnergyContainer().getInputVoltage()) - GTValues.MV);
Expand Down

0 comments on commit 8c9a6bd

Please sign in to comment.