aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-08-23 08:52:55 +1000
committerAlkalus <draknyte1@hotmail.com>2017-08-23 08:52:55 +1000
commitfbe7f5c310c647135d9fa4a2b407e688525e5b9e (patch)
tree938701010098d3dcc200fa1a1b55badf59629df2 /src/Java/gtPlusPlus/xmod/gregtech
parent98a0ca6df251d7fc1070b1ffb6fa43da950f4280 (diff)
downloadGT5-Unofficial-fbe7f5c310c647135d9fa4a2b407e688525e5b9e.tar.gz
GT5-Unofficial-fbe7f5c310c647135d9fa4a2b407e688525e5b9e.tar.bz2
GT5-Unofficial-fbe7f5c310c647135d9fa4a2b407e688525e5b9e.zip
$ Fixed LFTR power output logic.
+ Added some more logging.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java
index d5f2388305..4a86c58612 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java
@@ -597,8 +597,21 @@ public class GregtechMTE_NuclearReactor extends GT_MetaTileEntity_MultiBlockBase
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
//Add Power if active
if (aBaseMetaTileEntity.isActive()){
- Utils.LOG_INFO("Adding "+this.mEUt+"eu to internal storage.");
- this.getBaseMetaTileEntity().increaseStoredEnergyUnits(this.mEUt, false);
+ //this.getBaseMetaTileEntity().increaseStoredEnergyUnits(this.mEUt, false);
+
+ if (this.mDynamoHatches != null) {
+ int hatchNo = 0;
+ for (GT_MetaTileEntity_Hatch_Dynamo tHatch : this.mDynamoHatches) {
+ if (tHatch.mTier >= 5){
+ if (isValidMetaTileEntity(tHatch)){
+ tHatch.getBaseMetaTileEntity().increaseStoredEnergyUnits(this.mEUt, false);
+ Utils.LOG_INFO("Adding "+this.mEUt+"eu to internal storage of dynamo "+hatchNo+".");
+ }
+ }
+ hatchNo++;
+ }
+ }
+
}
super.onPostTick(aBaseMetaTileEntity, aTick);
}