Skip to content

Commit

Permalink
Update GT_NEI_DefaultHandler.java (#83)
Browse files Browse the repository at this point in the history
При просмотре рецепта в НЭИ будет отображено рядом с Напряжением в скобках Тир напряжения.
Voltage: 2 EU (ULV). Изначально это не пишет.
  • Loading branch information
Pilad authored Apr 15, 2020
1 parent 59f3113 commit 288b320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public void drawExtras(int aRecipeIndex) {
drawText(10, 73, trans("152","Total: ") + ((long)tDuration * tEUt) + " EU", -16777216);
drawText(10, 83, trans("153","Usage: ") + tEUt + " EU/t", -16777216);
if (this.mRecipeMap.mShowVoltageAmperageInNEI) {
drawText(10, 93, trans("154","Voltage: ") + tEUt / this.mRecipeMap.mAmperage + " EU", -16777216);
drawText(10, 93, trans("154","Voltage: ") + tEUt / this.mRecipeMap.mAmperage + " EU ("+GT_Values.VN[GT_Utility.getTier(tEUt / this.mRecipeMap.mAmperage)]+")", -16777216);
drawText(10, 103, trans("155","Amperage: ") + this.mRecipeMap.mAmperage, -16777216);
} else {
drawText(10, 93, trans("156","Voltage: unspecified"), -16777216);
Expand All @@ -219,7 +219,7 @@ public void drawExtras(int aRecipeIndex) {
}
if (tDuration > 0) {
// drawText(10, 113, trans("158","Time: ") + (tDuration < 20 ? "< 1" : Integer.valueOf(tDuration / 20)) + trans("161"," secs"), -16777216);
drawText(10, 113, String.format("%s%.2f%s", trans("158","Time: "), 0.05 * tDuration, trans("161"," secs")), -16777216);
drawText(10, 113, trans("158","Time: ")+String.format("%.2f " + trans("161"," secs"), 0.05F * tDuration), -16777216);
}
int tSpecial = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue;
if (tSpecial == -100 && GT_Mod.gregtechproxy.mLowGravProcessing) {
Expand Down

0 comments on commit 288b320

Please sign in to comment.