From fbe7f5c310c647135d9fa4a2b407e688525e5b9e Mon Sep 17 00:00:00 2001 From: Alkalus Date: Wed, 23 Aug 2017 08:52:55 +1000 Subject: $ Fixed LFTR power output logic. + Added some more logging. --- .../machines/multi/GregtechMTE_NuclearReactor.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech') 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); } -- cgit