aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--src/Java/gtPlusPlus/GTplusplus.java5
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java17
2 files changed, 20 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/GTplusplus.java b/src/Java/gtPlusPlus/GTplusplus.java
index 91efec62fb..bd64028027 100644
--- a/src/Java/gtPlusPlus/GTplusplus.java
+++ b/src/Java/gtPlusPlus/GTplusplus.java
@@ -20,6 +20,7 @@ import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.Materials;
import gregtech.api.util.EmptyRecipeMap;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
@@ -243,6 +244,10 @@ public class GTplusplus implements ActionListener {
this.dumpGtRecipeMap(Gregtech_Recipe_Map.sMatterFab2Recipes);
this.dumpGtRecipeMap(Gregtech_Recipe_Map.sAlloyBlastSmelterRecipes);
}
+
+ for (Materials s : gtPlusPlus.core.material.gregtech.CustomGTMaterials.Custom_GT_Materials){
+ Utils.LOG_INFO("Verification for New Material: "+s.mName);
+ }
// ~
//ReflectionUtils.becauseIWorkHard();
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);
}