diff options
author | Jordan Byrne <draknyte1@hotmail.com> | 2018-01-31 05:44:45 +1000 |
---|---|---|
committer | Jordan Byrne <draknyte1@hotmail.com> | 2018-01-31 05:44:45 +1000 |
commit | c6581f8bafaedfa9ae91730e5b0d87ff4e4cc49a (patch) | |
tree | aabb3366ccd05310f245bcda3eb44fd0a132aeae /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines | |
parent | 70f73cfe881bbcfc8f9fedf07ad0dc5f0d8075df (diff) | |
download | GT5-Unofficial-c6581f8bafaedfa9ae91730e5b0d87ff4e4cc49a.tar.gz GT5-Unofficial-c6581f8bafaedfa9ae91730e5b0d87ff4e4cc49a.tar.bz2 GT5-Unofficial-c6581f8bafaedfa9ae91730e5b0d87ff4e4cc49a.zip |
+ Added config to disable tooltips on EIO ingots.
$ Fixed worldgen issue in Everglades.
$ Fixed Power Sub-station not handling output voltages correctly.
$ Fixed Ore vein bias issue for Everglades gen. - https://github.com/GTNewHorizons/GT5-Unofficial/commit/05b361cf7f29f1cd24d69bcea8630f3ae470b182#diff-8accfe00d7b275149176462fbc5fcf59
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_PowerSubStationController.java | 29 |
1 files changed, 5 insertions, 24 deletions
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", |