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

Screwdriver driven development. #124

Merged
merged 7 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 25 additions & 12 deletions src/main/java/gregtech/api/enums/TAE.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import java.util.HashSet;

import gregtech.api.interfaces.ITexture;
import gregtech.api.objects.GT_CopiedBlockTexture;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.api.objects.data.AutoMap;
import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.reflect.ReflectionUtils;
import gtPlusPlus.xmod.gregtech.api.objects.GTPP_CopiedBlockTexture;

public class TAE {

Expand All @@ -20,7 +20,7 @@ public class TAE {
public static int gtPPLastUsedIndex = 64;
public static int secondaryIndex = 0;

public static HashMap<Integer, GT_CopiedBlockTexture> mTAE = new HashMap<Integer, GT_CopiedBlockTexture>();
public static HashMap<Integer, GTPP_CopiedBlockTexture> mTAE = new HashMap<Integer, GTPP_CopiedBlockTexture>();
private static final HashSet<Integer> mFreeSlots = new HashSet<Integer>(64);

static {
Expand All @@ -34,18 +34,18 @@ public class TAE {
*
* @param aPage - The Texture page (0-3)
* @param aID - The ID on the specified page (0-15)
* @param gt_CopiedBlockTexture - The Texture to register
* @param GTPP_CopiedBlockTexture - The Texture to register
* @return - Did it register correctly?
*/
public static boolean registerTexture(int aPage, int aID, GT_CopiedBlockTexture gt_CopiedBlockTexture) {
public static boolean registerTexture(int aPage, int aID, GTPP_CopiedBlockTexture GTPP_CopiedBlockTexture) {
int aRealID = aID + (aPage * 16);
return registerTexture(64 + aRealID, gt_CopiedBlockTexture);
return registerTexture(64 + aRealID, GTPP_CopiedBlockTexture);
}

public static boolean registerTexture(int aID, GT_CopiedBlockTexture gt_CopiedBlockTexture) {
public static boolean registerTexture(int aID, GTPP_CopiedBlockTexture GTPP_CopiedBlockTexture) {
if (mFreeSlots.contains(aID)) {
mFreeSlots.remove(aID);
mTAE.put(aID, gt_CopiedBlockTexture);
mTAE.put(aID, GTPP_CopiedBlockTexture);
return true;
}
else {
Expand All @@ -56,17 +56,22 @@ public static boolean registerTexture(int aID, GT_CopiedBlockTexture gt_CopiedBl

public static void finalizeTAE() {
String aFreeSpaces = "";
String aPageAndSlotFree = "";
AutoMap<Integer> aTemp = new AutoMap<Integer>(mFreeSlots);
for (int i = 0; i < mFreeSlots.size() ; i++) {
aFreeSpaces += aTemp.get(i);
int j = aTemp.get(i);
aFreeSpaces += j;
aPageAndSlotFree += getPageFromIndex(j);
if (i != (mFreeSlots.size() - 1)) {
aFreeSpaces += ", ";
aPageAndSlotFree += ", ";
}
}
Logger.INFO("Free Indexes within TAE: "+aFreeSpaces);
Logger.INFO("Free Page slots within TAE: "+aPageAndSlotFree);
Logger.INFO("Filling them with ERROR textures.");
for (int aFreeSlot : aTemp.values()) {
registerTexture(aFreeSlot, new GT_CopiedBlockTexture(ModBlocks.blockCasingsTieredGTPP, 1, 15));
registerTexture(aFreeSlot, new GTPP_CopiedBlockTexture(ModBlocks.blockCasingsTieredGTPP, 1, 15));
}
Logger.INFO("Finalising TAE.");
for (int aKeyTae : mTAE.keySet()) {
Expand All @@ -75,7 +80,7 @@ public static void finalizeTAE() {
Logger.INFO("Finalised TAE.");
}

private static boolean registerTextures(GT_CopiedBlockTexture gt_CopiedBlockTexture) {
private static boolean registerTextures(GTPP_CopiedBlockTexture GTPP_CopiedBlockTexture) {
try {
//Handle page 2.
Logger.INFO("[TAE} Registering Texture, Last used casing ID is "+gtPPLastUsedIndex+".");
Expand All @@ -85,7 +90,7 @@ private static boolean registerTextures(GT_CopiedBlockTexture gt_CopiedBlockText
if (x != null) {
ITexture[][] h = (ITexture[][]) x.get(null);
if (h != null) {
h[64][secondaryIndex++] = gt_CopiedBlockTexture;
h[64][secondaryIndex++] = GTPP_CopiedBlockTexture;
x.set(null, h);
Logger.INFO("[TAE} Registered Texture with ID "+(secondaryIndex-1)+" in secondary index.");
return true;
Expand All @@ -96,7 +101,7 @@ private static boolean registerTextures(GT_CopiedBlockTexture gt_CopiedBlockText

//set to page 1.
else {
Textures.BlockIcons.setCasingTextureForId(gtPPLastUsedIndex, gt_CopiedBlockTexture);
Textures.BlockIcons.setCasingTextureForId(gtPPLastUsedIndex, GTPP_CopiedBlockTexture);
Logger.INFO("[TAE} Registered Texture with ID "+(gtPPLastUsedIndex)+" in main index.");
gtPPLastUsedIndex++;
return true;
Expand Down Expand Up @@ -136,4 +141,12 @@ public static int getIndexFromPage(int page, int blockMeta) {
id += blockMeta;
return id;
}
public static String getPageFromIndex(int aIndex) {
int aPage = 0;
int aSlot = 0;
int aAdjustedIndex = aIndex > 64 ? (aIndex - 64) : aIndex;
aPage = aAdjustedIndex / 16;
aSlot = aAdjustedIndex - (16 * aPage);
return "["+aIndex+" | "+aPage+", "+aSlot+"]";
}
}
8 changes: 7 additions & 1 deletion src/main/java/gregtech/api/util/GTPP_Recipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.api.objects.data.AutoMap;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.minecraft.RecipeUtils;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.*;

Expand Down Expand Up @@ -69,6 +70,10 @@ public static String getRecipeHash(GT_Recipe aRecipe) {

private final void checkModified() {
if (hasBeenModified()) {
String[] aInfo = RecipeUtils.getRecipeInfo(this);
for (String s : aInfo) {
Logger.INFO(s);
}
CORE.crash("Someone has edited an internal GT++ recipe, which is no longer allowed. Please complain to whoever has done this, not Alkalus.");
}
}
Expand Down Expand Up @@ -432,7 +437,8 @@ public static class GTPP_Recipe_Map {
// Flotation Cell
public static final GTPP_Recipe_Map_Internal sFlotationCellRecipes = new GTPP_Recipe_Map_Internal(new HashSet<GT_Recipe>(10000), "gtpp.recipe.flotationcell", "Flotation Cell", null, RES_PATH_GUI + "basicmachines/LFTR", 6, 4, 1, 1, 1, "Ore Key: ", 1, E, true, false);


// Tree Growth Simulator
public static final GTPP_Recipe_Map_Internal sTreeSimFakeRecipes = new GTPP_Recipe_Map_Internal(new HashSet<GT_Recipe>(100), "gtpp.recipe.treefarm", "Tree Growth Simulator", null, RES_PATH_GUI + "basicmachines/FissionFuel", 9, 9, 1, 0, 1, "", 1, "", false, true);


/**
Expand Down
1 change: 1 addition & 0 deletions src/main/java/gtPlusPlus/core/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public final class ModBlocks {
public static Block blockSpecialMultiCasings;
public static Block blockSpecialMultiCasings2;
public static Block blockCustomMachineCasings;
public static Block blockCustomPipeGearCasings;

public static Block blockMetaTileEntity;
public static Block blockHeliumGenerator;
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/gtPlusPlus/core/block/base/BlockBaseModular.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.math.MathUtils;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemStack;
import net.minecraft.world.IBlockAccess;
Expand All @@ -29,6 +30,12 @@ public class BlockBaseModular extends BasicBlock {
public BlockTypes thisBlock;
protected String thisBlockMaterial;
protected final String thisBlockType;

private static HashMap<String, Block> sBlockCache = new HashMap<String, Block>();

public static Block getMaterialBlock(Material aMaterial, BlockTypes aType) {
return sBlockCache.get(aMaterial.getUnlocalizedName()+"."+aType.name());
}

public BlockBaseModular(final Material material, final BlockTypes blockType) {
this(material, blockType, material.getRgbAsHex());
Expand All @@ -39,6 +46,9 @@ public BlockBaseModular(final Material material, final BlockTypes blockType, fin
blockType, colour, Math.min(Math.max(material.vTier, 1), 6));
blockMaterial = material;
registerComponent();
if (material != null) {
sBlockCache.put(material.getUnlocalizedName()+"."+blockType.name(), this);
}
}

protected BlockBaseModular(final String unlocalizedName, final String blockMaterialString,
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/gtPlusPlus/core/block/base/BlockBaseOre.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.IIconContainer;
import gregtech.api.interfaces.ITexture;
import gregtech.api.objects.GT_CopiedBlockTexture;
import gregtech.api.objects.GT_RenderedTexture;
import gregtech.api.util.GT_OreDictUnificator;
import gtPlusPlus.api.interfaces.ITexturedBlock;
import gtPlusPlus.core.client.renderer.CustomOreBlockRenderer;
Expand All @@ -18,6 +16,8 @@
import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.core.util.reflect.ReflectionUtils;
import gtPlusPlus.xmod.gregtech.api.objects.GTPP_CopiedBlockTexture;
import gtPlusPlus.xmod.gregtech.api.objects.GTPP_RenderedTexture;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.EnumCreatureType;
Expand Down Expand Up @@ -93,9 +93,9 @@ public ITexture[] getTexture(byte arg0) {

public ITexture[] getTexture(Block block, byte side) {
if (this.blockMaterial != null){
GT_RenderedTexture aIconSet = new GT_RenderedTexture(blockMaterial.getTextureSet().mTextures[OrePrefixes.ore.mTextureIndex], this.blockMaterial.getRGBA());
GTPP_RenderedTexture aIconSet = new GTPP_RenderedTexture(blockMaterial.getTextureSet().mTextures[OrePrefixes.ore.mTextureIndex], this.blockMaterial.getRGBA());
if (aIconSet != null){
return new ITexture[]{new GT_CopiedBlockTexture(Blocks.stone, 0, 0), aIconSet};
return new ITexture[]{new GTPP_CopiedBlockTexture(Blocks.stone, 0, 0), aIconSet};
}
}

Expand All @@ -118,7 +118,7 @@ public ITexture[] getTexture(Block block, byte side) {
}
}
}
return new ITexture[]{new GT_RenderedTexture(hiddenTextureArray[0], new short[]{240, 240, 240, 0})};
return new ITexture[]{new GTPP_RenderedTexture(hiddenTextureArray[0], new short[]{240, 240, 240, 0})};
}

@Override
Expand Down Expand Up @@ -196,9 +196,9 @@ public ITexture[] getTexture(byte arg0) {

public ITexture[] getTexture(Block block, byte side) {
if (this.blockMaterial != null){
GT_RenderedTexture aIconSet = new GT_RenderedTexture(blockMaterial.getTextureSet().mTextures[OrePrefixes.ore.mTextureIndex], this.blockMaterial.getRGBA());
GTPP_RenderedTexture aIconSet = new GTPP_RenderedTexture(blockMaterial.getTextureSet().mTextures[OrePrefixes.ore.mTextureIndex], this.blockMaterial.getRGBA());
if (aIconSet != null){
return new ITexture[]{new GT_CopiedBlockTexture(Blocks.stone, 0, 0), aIconSet};
return new ITexture[]{new GTPP_CopiedBlockTexture(Blocks.stone, 0, 0), aIconSet};
}
}

Expand All @@ -221,7 +221,7 @@ public ITexture[] getTexture(Block block, byte side) {
}
}
}
return new ITexture[]{new GT_RenderedTexture(hiddenTextureArray[0], new short[]{240, 240, 240, 0})};
return new ITexture[]{new GTPP_RenderedTexture(hiddenTextureArray[0], new short[]{240, 240, 240, 0})};
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ else if (argString[0].toLowerCase().equals("inv")) {
if (aItem != null) {
String aModID = GameRegistry.findUniqueIdentifierFor(aItem.getItem()).modId;
String aRegistryName = GameRegistry.findUniqueIdentifierFor(aItem.getItem()).name;
Logger.INFO(aModID+":"+aRegistryName);
Logger.INFO(aModID+":"+aRegistryName+":"+aItem.getItemDamage()+" | "+aItem.getDisplayName());
}
}
PlayerUtils.messagePlayer(P, "Dumped Inventory.");
}
}
else if (argString[0].toLowerCase().equals("hand")) {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/gtPlusPlus/core/handler/COMPAT_HANDLER.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public static void registerGregtechMachines() {
GregtechIndustrialElementDuplicator.run();
GregtechIndustrialRockBreaker.run();
GregtechIndustrialChisel.run();
GregtechIndustrialFluidHeater.run();

//New Horizons Content
NewHorizonsAccelerator.run();
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/gtPlusPlus/core/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ public final class ModItems {
public static ItemStack itemHotTitaniumIngot;

public static Fluid fluidZrF4;
public static Fluid fluidFertBasic;
public static Fluid fluidFertUN32;
public static Fluid fluidFertUN18;

public static Item boxTools;
public static Item boxFood;
Expand Down Expand Up @@ -771,10 +774,10 @@ public static final void init(){
temp2 = ItemUtils.getCorrectStacktype("Forestry:fertilizerCompound", 1);
}
if (temp1 != null){
FluidUtils.generateFluidNonMolten("Fertiliser", "Fertiliser", 32, new short[]{45, 170, 45, 100}, temp1, temp2, true);
fluidFertBasic = FluidUtils.generateFluidNonMolten("Fertiliser", "Fertiliser", 32, new short[]{45, 170, 45, 100}, temp1, temp2, true);
}
FluidUtils.generateFluidNonMolten("UN32Fertiliser", "UN-32 Fertiliser", 24, new short[]{55, 190, 55, 100}, null, null, true);
FluidUtils.generateFluidNonMolten("UN18Fertiliser", "UN-18 Fertiliser", 22, new short[]{60, 155, 60, 100}, null, null, true);
fluidFertUN32 = FluidUtils.generateFluidNonMolten("UN32Fertiliser", "UN-32 Fertiliser", 24, new short[]{55, 190, 55, 100}, null, null, true);
fluidFertUN18 = FluidUtils.generateFluidNonMolten("UN18Fertiliser", "UN-18 Fertiliser", 22, new short[]{60, 155, 60, 100}, null, null, true);

/*GT_Values.RA.addMixerRecipe(
arg0, //Item In
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/gtPlusPlus/core/recipe/RECIPES_Machines.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ private static void run(){
sparging();
chisels();
rockBreaker();
thermicFluidHeater();

gt4FarmManager();
gt4Redstone();
Expand All @@ -276,6 +277,16 @@ private static void run(){

}


private static void thermicFluidHeater() {

RecipeUtils.addShapedGregtechRecipe(
CI.getPlate(5, 1), CI.circuitTier5, CI.getPlate(5, 1),
pipeTier7, ItemList.Machine_IV_FluidHeater.get(1), pipeTier7,
CI.getPlate(5, 1), CI.circuitTier4, CI.getPlate(5, 1),
GregtechItemList.Controller_IndustrialFluidHeater.get(1));
}

private static void computerCube() {

CORE.RA.addSixSlotAssemblingRecipe(
Expand Down Expand Up @@ -1299,6 +1310,12 @@ private static void runModRecipes(){
aBronzeBricks, ALLOY.TUMBAGA.getFrameBox(1), aBronzeBricks,
aBronzeBricks, ALLOY.TUMBAGA.getGear(1), aBronzeBricks,
GregtechItemList.Controller_SteamMaceratorMulti.get(1));
// Steam Compressor Multi
RecipeUtils.addShapedGregtechRecipe(
aBronzeBricks, "craftingPiston", aBronzeBricks,
ALLOY.TUMBAGA.getGear(1), ALLOY.TUMBAGA.getFrameBox(1), ALLOY.TUMBAGA.getGear(1),
draknyte1 marked this conversation as resolved.
Show resolved Hide resolved
aBronzeBricks, "craftingPiston", aBronzeBricks,
GregtechItemList.Controller_SteamCompressorMulti.get(1));

// Steam Hatch
RecipeUtils.addShapedGregtechRecipe(
Expand Down
19 changes: 4 additions & 15 deletions src/main/java/gtPlusPlus/nei/GTPP_NEI_DefaultHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

import java.awt.Rectangle;
import java.lang.ref.SoftReference;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.*;
import java.util.stream.Collectors;

import org.lwjgl.opengl.GL11;
Expand All @@ -15,20 +11,13 @@
import codechicken.nei.PositionedStack;
import codechicken.nei.guihook.IContainerInputHandler;
import codechicken.nei.guihook.IContainerTooltipHandler;
import codechicken.nei.recipe.GuiCraftingRecipe;
import codechicken.nei.recipe.GuiRecipe;
import codechicken.nei.recipe.GuiUsageRecipe;
import codechicken.nei.recipe.TemplateRecipeHandler;
import codechicken.nei.recipe.*;
import cpw.mods.fml.common.event.FMLInterModComms;
import gregtech.api.enums.GT_Values;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.objects.ItemData;
import gregtech.api.util.GT_LanguageManager;
import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.*;
import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
import gregtech.api.util.GT_Utility;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.api.objects.data.Pair;
import gtPlusPlus.core.util.math.MathUtils;
import net.minecraft.client.Minecraft;
Expand Down Expand Up @@ -246,7 +235,7 @@ public void drawExtras(final int aRecipeIndex) {
}
}
if (tDuration > 0) {
drawText(10, 113, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(Long.valueOf(tDuration / 20))) + " secs", -16777216);
drawText(10, 113, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(0.05d * tDuration)) + " secs", -16777216);
}
if ((GT_Utility.isStringValid(this.mRecipeMap.mNEISpecialValuePre)) || (GT_Utility.isStringValid(this.mRecipeMap.mNEISpecialValuePost))) {
drawText(10, 123, this.mRecipeMap.mNEISpecialValuePre + (((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue * this.mRecipeMap.mNEISpecialValueMultiplier) + this.mRecipeMap.mNEISpecialValuePost, -16777216);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gtPlusPlus/nei/GT_NEI_FluidReactor.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void drawExtras(final int aRecipeIndex) {
}
}
if (tDuration > 0) {
drawText(10, 103, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(Integer.valueOf(tDuration / 20))) + " secs", -16777216);
drawText(10, 103, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(0.05d * tDuration)) + " secs", -16777216);
}
if ((GT_Utility.isStringValid(this.mRecipeMap.mNEISpecialValuePre)) || (GT_Utility.isStringValid(this.mRecipeMap.mNEISpecialValuePost))) {
int aTier = (((ChemPlantDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gtPlusPlus/nei/GT_NEI_LFTR.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void drawBackground(final int recipe) {
public void drawExtras(final int aRecipeIndex) {
final long tEUt = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue;
final int tDuration = ((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mDuration;
drawText(10, 83, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(Integer.valueOf(tDuration / 20))) + " secs", -16777216);
drawText(10, 83, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(0.05d * tDuration)) + " secs", -16777216);
drawText(10, 93, this.mRecipeMap.mNEISpecialValuePre + MathUtils.formatNumbers((((CachedDefaultRecipe) this.arecipes.get(aRecipeIndex)).mRecipe.mSpecialValue * this.mRecipeMap.mNEISpecialValueMultiplier)) + this.mRecipeMap.mNEISpecialValuePost, -16777216);
drawText(10, 103, "Dynamo: " + MathUtils.formatNumbers((long) (tDuration * tEUt)) + " EU", -16777216);
drawText(10, 113, "Total: " + MathUtils.formatNumbers((long) (tDuration * tEUt * 4)) + " EU", -16777216);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/gtPlusPlus/nei/GT_NEI_LFTR_Sparging.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void drawExtras(int aRecipeIndex) {
final long tDuration = ((GasSpargingRecipeNEI) this.arecipes.get(aRecipeIndex)).mRecipe.mDuration;
GT_NEI_LFTR.drawText(10, 73, "Total: " + MathUtils.formatNumbers((long) (tDuration * tEUt)) + " EU", -16777216);
GT_NEI_LFTR.drawText(10, 83, "Usage: " + MathUtils.formatNumbers(tEUt) + " EU/t", -16777216);
GT_NEI_LFTR.drawText(10, 93, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(Long.valueOf(tDuration / 20))) + " secs", -16777216);
GT_NEI_LFTR.drawText(10, 93, "Time: " + (tDuration < 20 ? "< 1" : MathUtils.formatNumbers(0.05d * tDuration)) + " secs", -16777216);
GT_NEI_LFTR.drawText(10, 103, "Gas not used to sparge is", -16777216);
GT_NEI_LFTR.drawText(10, 113, "returned alongside outputs.", -16777216);
}
Expand Down
Loading