aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/nei
diff options
context:
space:
mode:
authorJohannes Gäßler <updrn@student.kit.edu>2017-04-19 23:36:50 +0200
committerJohannes Gäßler <updrn@student.kit.edu>2017-04-19 23:36:50 +0200
commit869cad0bbafb3e3817e491ba2aaa332649587816 (patch)
tree16b344a236e620ed6d91341f2df3289ca4b3e47e /src/main/java/gregtech/nei
parent2ee3b7e712413604549af3097fda93cbb22a262e (diff)
downloadGT5-Unofficial-869cad0bbafb3e3817e491ba2aaa332649587816.tar.gz
GT5-Unofficial-869cad0bbafb3e3817e491ba2aaa332649587816.tar.bz2
GT5-Unofficial-869cad0bbafb3e3817e491ba2aaa332649587816.zip
Added a lot of (petro)chemistry stuff, expanded the API
Created an adapter class for creating materials. Materials now have bit flags for automatic gas/fluid creation. Added a new convenience method for adding distillery recipes. Recipes now show the exact recipe duration instead of the duration rounded down to the nearest int. Added new Materials with relevant recipes: Acetic Acid, Acetone, Calcium Acetate, Charcoal Byproducts, Carbon Monoxide, Ethanol, Ethylene, Methanol, Methyl Acetate, Polyvinyl Acetate, Propene, Sulfuric Ethylene, Vinyl Acetate Made vinegar visible.
Diffstat (limited to 'src/main/java/gregtech/nei')
-rw-r--r--src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java
index 030a9ad06a..193e8432d1 100644
--- a/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java
+++ b/src/main/java/gregtech/nei/GT_NEI_DefaultHandler.java
@@ -215,7 +215,8 @@ public class GT_NEI_DefaultHandler
}
}
if (tDuration > 0) {
- drawText(10, 113, "Time: " + (tDuration < 20 ? "< 1" : Integer.valueOf(tDuration / 20)) + " secs", -16777216);
+// drawText(10, 113, "Time: " + (tDuration < 20 ? "< 1" : Integer.valueOf(tDuration / 20)) + " secs", -16777216);
+ drawText(10, 113, String.format("Time: %.2f secs", 0.05 * tDuration), -16777216);
}
int tSpecial = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue;
if (tSpecial == -100 && GT_Mod.gregtechproxy.mLowGravProcessing) {