Skip to content

Commit

Permalink
Add warning to controller if Turbine is obstructed (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers authored Oct 2, 2021
1 parent 1addd54 commit 62faa27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ protected void addDisplayText(List<ITextComponent> textList) {
MIN_DURABILITY_TO_WARN, rotorDurability).setStyle(new Style().setColor(TextFormatting.RED)));
}
}

if(!isRotorFaceFree()) {
textList.add(new TextComponentTranslation("gregtech.multiblock.turbine.obstructed")
.setStyle(new Style().setColor(TextFormatting.RED)));
}
}
super.addDisplayText(textList);
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/gregtech/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -2995,6 +2995,7 @@ gregtech.multiblock.turbine.rotor_speed=Rotor Speed: %s / %s RPM
gregtech.multiblock.turbine.rotor_efficiency=Rotor Efficiency: %s%%
gregtech.multiblock.turbine.rotor_durability=Rotor Durability: %s%%
gregtech.multiblock.turbine.low_rotor_durability=WARNING: Rotor Durability below %s%% (%s%%)
gregtech.multiblock.turbine.obstructed=Turbine Face Obstructed

gregtech.multiblock.large_boiler.temperature=Temperature: %s / %s C
gregtech.multiblock.large_boiler.steam_output=Steam Output: %s mb/t
Expand Down

0 comments on commit 62faa27

Please sign in to comment.