aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2016-12-23 22:26:03 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2016-12-23 22:26:03 +1000
commit91d83f245e41fad1fcf5fdfde85bd4e8757d8a0b (patch)
tree6eaa2834f8ade5d629180bb2fc3b3b847397f831 /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities
parentf4fd215adcb867f4e87d4583f733b727d111f8eb (diff)
downloadGT5-Unofficial-91d83f245e41fad1fcf5fdfde85bd4e8757d8a0b.tar.gz
GT5-Unofficial-91d83f245e41fad1fcf5fdfde85bd4e8757d8a0b.tar.bz2
GT5-Unofficial-91d83f245e41fad1fcf5fdfde85bd4e8757d8a0b.zip
% Moved a handful of recipes from GregtechFluidHandler.java to RECIPES_GREGTECH.java
% Changed LFTR logic.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMTE_NuclearReactor.java43
1 files changed, 35 insertions, 8 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 4e1ac58a6a..5fad590f3f 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
@@ -200,20 +200,32 @@ public class GregtechMTE_NuclearReactor extends GT_MetaTileEntity_MultiBlockBase
}
if (this.mEnergyHatches != null) {
for (int i = 0; i < this.mEnergyHatches.size(); i++) {
- if (this.mEnergyHatches.get(i).mTier < 6)
+ if (this.mEnergyHatches.get(i).mTier < 5){
+ Utils.LOG_INFO("You require at LEAST V tier Energy Hatches.");
+ Utils.LOG_INFO(this.mOutputHatches.get(i).getBaseMetaTileEntity().getXCoord()+","+this.mOutputHatches.get(i).getBaseMetaTileEntity().getYCoord()+","+this.mOutputHatches.get(i).getBaseMetaTileEntity().getZCoord());
return false;
+ }
}
}
if (this.mOutputHatches != null) {
for (int i = 0; i < this.mOutputHatches.size(); i++) {
- if (this.mOutputHatches.get(i).mTier < 6)
+
+ if (this.mOutputHatches.get(i).mTier < 5 && (this.mOutputHatches.get(i).getBaseMetaTileEntity() instanceof GregtechMTE_NuclearReactor)){
+ Utils.LOG_INFO("You require at LEAST V tier Output Hatches.");
+ Utils.LOG_INFO(this.mOutputHatches.get(i).getBaseMetaTileEntity().getXCoord()+","+this.mOutputHatches.get(i).getBaseMetaTileEntity().getYCoord()+","+this.mOutputHatches.get(i).getBaseMetaTileEntity().getZCoord());
+ Utils.LOG_INFO(this.mOutputHatches.get(i).getBaseMetaTileEntity().getInventoryName());
return false;
+ }
}
}
if (this.mInputHatches != null) {
for (int i = 0; i < this.mInputHatches.size(); i++) {
- if (this.mInputHatches.get(i).mTier < 6)
+ if (this.mInputHatches.get(i).mTier < 5){
+ Utils.LOG_INFO("You require at LEAST V tier Input Hatches.");
+ Utils.LOG_INFO(this.mOutputHatches.get(i).getBaseMetaTileEntity().getXCoord()+","+this.mOutputHatches.get(i).getBaseMetaTileEntity().getYCoord()+","+this.mOutputHatches.get(i).getBaseMetaTileEntity().getZCoord());
+ Utils.LOG_INFO(this.mOutputHatches.get(i).getBaseMetaTileEntity().getInventoryName());
return false;
+ }
}
}
mWrench = true;
@@ -266,19 +278,34 @@ public class GregtechMTE_NuclearReactor extends GT_MetaTileEntity_MultiBlockBase
}
public boolean turnCasingActive(boolean status) {
- if (this.mEnergyHatches != null) {
- for (GT_MetaTileEntity_Hatch_Energy hatch : this.mEnergyHatches) {
- hatch.mMachineBlock = status ? (byte) 52 : (byte) 53;
+ if (this.mDynamoHatches != null) {
+ for (GT_MetaTileEntity_Hatch_Dynamo hatch : this.mDynamoHatches) {
+ hatch.mMachineBlock = status ? (byte) 70 : (byte) 71;
+ }
+ }
+ if (this.mMufflerHatches != null) {
+ for (GT_MetaTileEntity_Hatch_Muffler hatch : this.mMufflerHatches) {
+ hatch.mMachineBlock = status ? (byte) 70 : (byte) 71;
}
}
if (this.mOutputHatches != null) {
for (GT_MetaTileEntity_Hatch_Output hatch : this.mOutputHatches) {
- hatch.mMachineBlock = status ? (byte) 52 : (byte) 53;
+ hatch.mMachineBlock = status ? (byte) 70 : (byte) 71;
}
}
if (this.mInputHatches != null) {
for (GT_MetaTileEntity_Hatch_Input hatch : this.mInputHatches) {
- hatch.mMachineBlock = status ? (byte) 52 : (byte) 53;
+ hatch.mMachineBlock = status ? (byte) 70 : (byte) 71;
+ }
+ }
+ if (this.mOutputBusses != null) {
+ for (GT_MetaTileEntity_Hatch_OutputBus hatch : this.mOutputBusses) {
+ hatch.mMachineBlock = status ? (byte) 70 : (byte) 71;
+ }
+ }
+ if (this.mInputBusses != null) {
+ for (GT_MetaTileEntity_Hatch_InputBus hatch : this.mInputBusses) {
+ hatch.mMachineBlock = status ? (byte) 70 : (byte) 71;
}
}
return true;