diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-03-28 22:31:05 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-03-28 22:31:05 +1000 |
commit | 0f82fbd2b1f3643afdb1f4797f5fea9b2066cb43 (patch) | |
tree | 73042b69cd7fd468db4486aab3a8ecece1de9847 /src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity | |
parent | 49010b5511dce4228d6e5ef6cf790d83e88c0a59 (diff) | |
download | GT5-Unofficial-0f82fbd2b1f3643afdb1f4797f5fea9b2066cb43.tar.gz GT5-Unofficial-0f82fbd2b1f3643afdb1f4797f5fea9b2066cb43.tar.bz2 GT5-Unofficial-0f82fbd2b1f3643afdb1f4797f5fea9b2066cb43.zip |
$ Fixed potential issue where boosted recipes may be invalid, but the Multiblock may possibly try use the previously cached boosted recipe.
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 | 10 |
1 files changed, 10 insertions, 0 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 d188202324..11eaf05535 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 @@ -708,6 +708,11 @@ GT_MetaTileEntity_MultiBlockBase { mHasBoostedCurrentRecipe = true; tRecipe = mBoostedRecipe; } + //Bad boost + else { + mBoostedRecipe = null; + mHasBoostedCurrentRecipe = false; + } } } //We have changed inputs, so we should generate a new boosted recipe @@ -718,6 +723,11 @@ GT_MetaTileEntity_MultiBlockBase { mHasBoostedCurrentRecipe = true; tRecipe = mBoostedRecipe; } + //Bad boost + else { + mBoostedRecipe = null; + mHasBoostedCurrentRecipe = false; + } } //Bad modify, let's just use the original recipe. |