aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/gtPlusPlus/xmod')
-rw-r--r--src/Java/gtPlusPlus/xmod/eio/handler/HandlerTooltip_EIO.java6
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_PowerSubStationController.java29
2 files changed, 8 insertions, 27 deletions
diff --git a/src/Java/gtPlusPlus/xmod/eio/handler/HandlerTooltip_EIO.java b/src/Java/gtPlusPlus/xmod/eio/handler/HandlerTooltip_EIO.java
index 820592a300..915140df2c 100644
--- a/src/Java/gtPlusPlus/xmod/eio/handler/HandlerTooltip_EIO.java
+++ b/src/Java/gtPlusPlus/xmod/eio/handler/HandlerTooltip_EIO.java
@@ -1,13 +1,13 @@
package gtPlusPlus.xmod.eio.handler;
+import static gtPlusPlus.core.lib.CORE.ConfigSwitches.disableEnderIOIngotTooltips;
+
import java.lang.reflect.Field;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import gregtech.api.enums.Materials;
import gtPlusPlus.core.lib.LoadedMods;
-import gtPlusPlus.core.util.Utils;
import gtPlusPlus.core.util.item.ItemUtils;
-import gtPlusPlus.core.util.reflect.ReflectionUtils;
import gtPlusPlus.xmod.eio.material.MaterialEIO;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
@@ -28,7 +28,7 @@ public class HandlerTooltip_EIO {
@SubscribeEvent
public void onItemTooltip(ItemTooltipEvent event){
//Is EIO loaded?
- if (LoadedMods.EnderIO){
+ if (disableEnderIOIngotTooltips && LoadedMods.EnderIO){
//Is the EIO Ingot Item null?
//If it is, reflect in.
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_PowerSubStationController.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_PowerSubStationController.java
index e9638d29ed..b26201299b 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_PowerSubStationController.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_PowerSubStationController.java
@@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
import gregtech.api.GregTech_API;
+import gregtech.api.enums.GT_Values;
import gregtech.api.enums.TAE;
import gregtech.api.enums.Textures;
import gregtech.api.interfaces.ITexture;
@@ -448,16 +449,7 @@ public class GregtechMetaTileEntity_PowerSubStationController extends GregtechMe
//Output Power
if (this.mActualStoredEU > 0){
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
- addEnergyOutput(1);
+ addEnergyOutput(1);
}
}
super.onPostTick(aBaseMetaTileEntity, aTick);
@@ -503,24 +495,17 @@ public class GregtechMetaTileEntity_PowerSubStationController extends GregtechMe
return true;
long nStoredPower = this.getEUVar();
int hatchCount = 0;
- //Utils.LOG_INFO("Charge Hatches: "+this.mChargeHatches.size());
for (GT_MetaTileEntity_Hatch_InputBattery tHatch : this.mChargeHatches) {
- //Utils.LOG_INFO("Storing Power in a Charge Hatch");
if ((isValidMetaTileEntity(tHatch)) && (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(tHatch.maxEUInput(), false))) {
this.setEUVar(this.getEUVar()-(tHatch.maxEUInput()));
this.mTotalEnergyConsumed+=(tHatch.maxEUInput());
- //this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(tHatch.getOutputTier()*2, false);
- //Utils.LOG_INFO("Hatch "+hatchCount+" has "+tHatch.getEUVar()+"eu stored. Avg used is "+(this.mAverageEuUsage));
}
hatchCount++;
}
for (GT_MetaTileEntity_Hatch tHatch : this.mAllDynamoHatches) {
- //Utils.LOG_INFO("Storing Power in a Dynamo Hatch");
- if ((isValidMetaTileEntity(tHatch)) && (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(tHatch.getOutputTier()*2, false))) {
- this.setEUVar(this.getEUVar()-(tHatch.getOutputTier()*2));
- this.mTotalEnergyConsumed+=(tHatch.getOutputTier()*2);
- //this.getBaseMetaTileEntity().decreaseStoredEnergyUnits(tHatch.getOutputTier()*2, false);
- //Utils.LOG_INFO("Hatch "+hatchCount+" has "+tHatch.getEUVar()+"eu stored. Avg used is "+(this.mAverageEuUsage));
+ if ((isValidMetaTileEntity(tHatch)) && (tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(GT_Values.V[(int) tHatch.getOutputTier()], false))) {
+ this.setEUVar(this.getEUVar()-(GT_Values.V[(int) tHatch.getOutputTier()]));
+ this.mTotalEnergyConsumed+=(GT_Values.V[(int) tHatch.getOutputTier()]);
}
hatchCount++;
}
@@ -542,8 +527,6 @@ public class GregtechMetaTileEntity_PowerSubStationController extends GregtechMe
return 0;
}
- //mAverageEuUsage
-
@Override
public String[] getInfoData() {
@@ -555,8 +538,6 @@ public class GregtechMetaTileEntity_PowerSubStationController extends GregtechMe
long minutes = TimeUnit.SECONDS.toMinutes(seconds) - (TimeUnit.SECONDS.toHours(seconds) * 60);
long second = TimeUnit.SECONDS.toSeconds(seconds) - (TimeUnit.SECONDS.toMinutes(seconds) *60);
-
-
return new String[]{
"Ergon Energy - District Sub-Station",
"EU Required: "+this.mAverageEuUsage+"EU/t",