aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/tileentities/machines
diff options
context:
space:
mode:
authorConnor-Colenso <52056774+Connor-Colenso@users.noreply.github.com>2022-06-22 23:03:38 +0100
committerGitHub <noreply@github.com>2022-06-23 00:03:38 +0200
commitba6bc0844281558f35cce72b54267064f6d86208 (patch)
tree92577639d247cd6f255865ed2462f46b0ea3ad80 /src/main/java/gregtech/common/tileentities/machines
parent2b272a028ffe3c133f6d8011bb6a6b37d2c44b31 (diff)
downloadGT5-Unofficial-ba6bc0844281558f35cce72b54267064f6d86208.tar.gz
GT5-Unofficial-ba6bc0844281558f35cce72b54267064f6d86208.tar.bz2
GT5-Unofficial-ba6bc0844281558f35cce72b54267064f6d86208.zip
Plasma forge fixes (#1086)
* Basis of changes. * Fix item stack and fluid vanishing. * Add new plasma forge UI, change tooltip and fix recipe map. * Fix corrupted fluid registry. * Fix fluids in recipes. Items still need adjusting. * Working. * Liquid spacetime and rename multi to D.T.P.S. so it can fit in GUI properly. * Make animation of spacetime fluid slower. * Fix recipe map (again). * Remove screwdriver junk. Clean up code slightly. * More cleaning. * Comments * Add hatch limitations and add some additional information. Also update NEI GUI. * Add proper recipes and change SpaceTime to a fluid not a gas. * Remove depreciated coil check (since I stole the IDs). * Remove depreciated coil check (since I stole the IDs). Add more comments. * Change temp of SpaceTime. * Add catalyst recipes + support for 16:16 fusion recipes. * Add comments. * Scala fix maybe? * Change plasma forge GUI. * Uncap temperature of materials. (Short -> Int) * Add chunkloading support (when multi is active). * Fix NEI merge issues. * fix used ids in kevlar * Add fluid support for laser engraver. * fix sh***t (cherry picked from commit 01851c100c52fd8292028cf6dda2cb136c617afc) * Add new intermediate materials to facilitate crafting. Also fix fusion typo. * Fix heat/fluid quantity display to be formatted correctly. * Change recipes to be more balanced. * Change residue fluid texture. * Restore better naming for multiblock. * Fix recipe typo. * Fix text not wrapping in multi controller. * Give laser engraver internal fluid storage. * Add IMC NEI support. * Update material properties. * Remove old dev comments. * Fix NEI texture. * Update/fix plasma forge recipes. * Increase max hatch count. * Increase max hatch count and fix mixing energy hatches. Plus quick check for processing time. * Fix spacetime recipe. * Update spacetime textures and add new item textures. * Remove manual spacetime fluid addition. * Add custom fluid texture override ability. * Update infinity and spacetime to use new custom fluid override texture. * Depreciate old recipe adding methods. * Refactor GT NEI handler. * Remove unnecessary import. * Remove debug comment. * Clean up auto generated fluid code. * Fix NPE and add a few comments. * Refactor GT NEI handler. * Update NEI GUIs. * More NEI fixes. * Update LCR NEI GUI. * Update error message. Co-authored-by: GTNH-Colen <54497873+GTNH-Colen@users.noreply.github.com> Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines')
-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;