diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-12-11 17:38:16 +0000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-12-11 17:38:16 +0000 |
commit | ce4f2c54229720b106f95717bda1c608edff3346 (patch) | |
tree | 55b5f5145f06fabda5b58766fded0ad6b31631f6 /src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity | |
parent | 162a990fe4a1cb9cbc18e011e4d69fc4da0693b6 (diff) | |
download | GT5-Unofficial-ce4f2c54229720b106f95717bda1c608edff3346.tar.gz GT5-Unofficial-ce4f2c54229720b106f95717bda1c608edff3346.tar.bz2 GT5-Unofficial-ce4f2c54229720b106f95717bda1c608edff3346.zip |
+ Finalised structure code for Chemical Plant.
% Redid handling of Algae Recipes.
% Adjusted Texture handling on Chemical Plant and Algae Farm.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java index fe9e3ee9a0..03b8768240 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java @@ -469,15 +469,30 @@ public abstract class GregtechMeta_MultiBlockBase extends GT_MetaTileEntity_Mult public String getSound() { return ""; } + public boolean canBufferOutputs(final GT_Recipe aRecipe, int aParallelRecipes) { + return canBufferOutputs(aRecipe, aParallelRecipes, true); + } + + public boolean canBufferOutputs(final GT_Recipe aRecipe, int aParallelRecipes, boolean aAllow16SlotWithoutCheck) { Logger.INFO("Determining if we have space to buffer outputs. Parallel: "+aParallelRecipes); // Null recipe or a recipe with lots of outputs? // E.G. Gendustry custom comb with a billion centrifuge outputs? - // Do it anyway. + // Do it anyway, provided the multi allows it. Default behaviour is aAllow16SlotWithoutCheck = true. if (aRecipe == null || aRecipe.mOutputs.length > 16) { - return aRecipe == null ? false : true; + if (aRecipe == null) { + return false; + } + else if (aRecipe.mOutputs.length > 16) { + if (aAllow16SlotWithoutCheck) { + return true; + } + else { + // Do nothing, we want to check this recipe properly. + } + } } // Do we even need to check for item outputs? |