aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatt <mtthw8198@gmail.com>2021-05-11 09:41:02 -0700
committerMatt <mtthw8198@gmail.com>2021-05-11 09:41:02 -0700
commitc1ba9d8d0ffbb27f66a6a4eaf36f240baf801eeb (patch)
tree7388139eabdd2b7542a465780635c655b3ef8b3e /src/main
parenta1a1f04fb64612a1ce1aea7c337bcf67bd9d1361 (diff)
downloadGT5-Unofficial-c1ba9d8d0ffbb27f66a6a4eaf36f240baf801eeb.tar.gz
GT5-Unofficial-c1ba9d8d0ffbb27f66a6a4eaf36f240baf801eeb.tar.bz2
GT5-Unofficial-c1ba9d8d0ffbb27f66a6a4eaf36f240baf801eeb.zip
undid change to getInfoData()
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
index a347465a12..ef602d33fb 100644
--- a/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
+++ b/src/main/java/common/tileentities/GTMTE_LapotronicSuperCapacitor.java
@@ -400,6 +400,8 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
final GT_MetaTileEntity_Hatch_Energy tHatch = ((GT_MetaTileEntity_Hatch_Energy) mte);
tHatch.updateTexture(aBaseCasingIndex);
+// mMaxEUInput += tHatch.maxEUInput();
+// mMaxAmperesIn += tHatch.maxAmperesIn();
mMaxEUInput = Math.max(mMaxEUInput, tHatch.maxEUInput());
mMaxAmperesIn = Math.max(mMaxAmperesIn, tHatch.maxAmperesIn());
@@ -408,6 +410,8 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
// Add TT Laser hatches
final GT_MetaTileEntity_Hatch_EnergyTunnel tHatch = ((GT_MetaTileEntity_Hatch_EnergyTunnel) mte);
+// mMaxEUInput += tHatch.maxEUInput();
+// mMaxAmperesIn += tHatch.maxAmperesIn();
mMaxEUInput = Math.max(mMaxEUInput, tHatch.maxEUInput());
mMaxAmperesIn = Math.max(mMaxAmperesIn, tHatch.maxAmperesIn());
@@ -417,6 +421,8 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
final GT_MetaTileEntity_Hatch_EnergyMulti tHatch = (GT_MetaTileEntity_Hatch_EnergyMulti) mte;
tHatch.updateTexture(aBaseCasingIndex);
+// mMaxEUInput += tHatch.maxEUInput();
+// mMaxAmperesIn += tHatch.maxAmperesIn();
mMaxEUInput = Math.max(mMaxEUInput, tHatch.maxEUInput());
mMaxAmperesIn = Math.max(mMaxAmperesIn, tHatch.maxAmperesIn());
@@ -438,6 +444,8 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
final GT_MetaTileEntity_Hatch_Dynamo tDynamo = (GT_MetaTileEntity_Hatch_Dynamo) mte;
tDynamo.updateTexture(aBaseCasingIndex);
+// mMaxEUOut += tDynamo.maxEUOutput();
+// mMaxAmperesOut += tDynamo.maxAmperesOut();
mMaxEUOut = Math.max(mMaxEUOut, tDynamo.maxEUOutput());
mMaxAmperesOut = Math.max(mMaxAmperesOut, tDynamo.maxAmperesOut());
@@ -446,6 +454,8 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
// Add TT Laser hatches
final GT_MetaTileEntity_Hatch_DynamoTunnel tDynamo = (GT_MetaTileEntity_Hatch_DynamoTunnel) mte;
+// mMaxEUOut += tDynamo.maxEUOutput();
+// mMaxAmperesOut += tDynamo.maxAmperesOut();
mMaxEUOut = Math.max(mMaxEUOut, tDynamo.maxEUOutput());
mMaxAmperesOut = Math.max(mMaxAmperesOut, tDynamo.maxAmperesOut());
@@ -455,6 +465,8 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
final GT_MetaTileEntity_Hatch_DynamoMulti tDynamo = (GT_MetaTileEntity_Hatch_DynamoMulti) mte;
tDynamo.updateTexture(aBaseCasingIndex);
+// mMaxEUOut += tDynamo.maxEUOutput();
+// mMaxAmperesOut += tDynamo.maxAmperesOut();
mMaxEUOut = Math.max(mMaxEUOut, tDynamo.maxEUOutput());
mMaxAmperesOut = Math.max(mMaxAmperesOut, tDynamo.maxAmperesOut());
@@ -557,8 +569,8 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
IGregTechTileEntity tBMTE = this.getBaseMetaTileEntity();
- tBMTE.injectEnergyUnits((byte)ForgeDirection.UNKNOWN.ordinal(), inputLastTick.longValue() / mMaxAmperesIn, mMaxAmperesIn);
- tBMTE.drainEnergyUnits((byte)ForgeDirection.UNKNOWN.ordinal(), outputLastTick.longValue() / mMaxAmperesOut, mMaxAmperesOut);
+ tBMTE.injectEnergyUnits((byte)ForgeDirection.UNKNOWN.ordinal(), inputLastTick.longValue(), mMaxAmperesIn);
+ tBMTE.drainEnergyUnits((byte)ForgeDirection.UNKNOWN.ordinal(), outputLastTick.longValue(), mMaxAmperesOut);
return true;
}
@@ -600,15 +612,13 @@ public class GTMTE_LapotronicSuperCapacitor extends GT_MetaTileEntity_MultiBlock
@Override
public String[] getInfoData() {
- IGregTechTileEntity tBMTE = getBaseMetaTileEntity();
-
final ArrayList<String> ll = new ArrayList<>();
ll.add(EnumChatFormatting.YELLOW + "Operational Data:" + EnumChatFormatting.RESET);
ll.add("Used Capacity: " + NumberFormat.getNumberInstance().format(stored) + "EU");
ll.add("Total Capacity: " + NumberFormat.getNumberInstance().format(capacity) + "EU");
ll.add("Passive Loss: " + NumberFormat.getNumberInstance().format(passiveDischargeAmount) + "EU/t");
- ll.add("EU IN: " + NumberFormat.getNumberInstance().format(tBMTE.getAverageElectricInput()) + "EU/t");
- ll.add("EU OUT: " + NumberFormat.getNumberInstance().format(tBMTE.getAverageElectricOutput()) + "EU/t");
+ ll.add("EU IN: " + NumberFormat.getNumberInstance().format(inputLastTick) + "EU/t");
+ ll.add("EU OUT: " + NumberFormat.getNumberInstance().format(outputLastTick) + "EU/t");
ll.add("Maintenance Status: " + ((super.getRepairStatus() == super.getIdealStatus())
? EnumChatFormatting.GREEN + "Working perfectly" + EnumChatFormatting.RESET
: EnumChatFormatting.RED + "Has Problems" + EnumChatFormatting.RESET));