aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tileentities
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/common/tileentities')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java
index 34c38537a9..97bda10e2f 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_PlasmaForge.java
@@ -195,6 +195,7 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul
// Vital recipe info.
mEUt = -tRecipe.mEUt;
mMaxProgresstime = tRecipe.mDuration;
+ mMaxProgresstime = Math.max(1, mMaxProgresstime);
// Outputs.
mOutputItems = tRecipe.mOutputs.clone();
@@ -223,15 +224,23 @@ public class GT_MetaTileEntity_PlasmaForge extends GT_MetaTileEntity_AbstractMul
if (mOutputBusses.size() > 3)
return false;
- if (mInputHatches.size() > 3)
+ // Numerous input hatches required to satisfy fluid inputs for superconductor recipes.
+ if (mInputHatches.size() > 6)
return false;
if (mOutputHatches.size() > 3)
return false;
+ // Check that there is between 1 and 2 energy hatches in the multi.
if (!((mEnergyHatches.size() == 1) || (mEnergyHatches.size() == 2)))
return false;
+ // Check whether each energy hatch is the same tier.
+ byte tier_of_hatch = mEnergyHatches.get(0).mTier;
+ for(GT_MetaTileEntity_Hatch_Energy energyHatch : mEnergyHatches) {
+ if (energyHatch.mTier != tier_of_hatch) { return false; }
+ }
+
if (mMaintenanceHatches.size() != 1)
return false;