aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2019-03-28 22:31:05 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2019-03-28 22:31:05 +1000
commit0f82fbd2b1f3643afdb1f4797f5fea9b2066cb43 (patch)
tree73042b69cd7fd468db4486aab3a8ecece1de9847 /src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base
parent49010b5511dce4228d6e5ef6cf790d83e88c0a59 (diff)
downloadGT5-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/implementations/base')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/api/metatileentity/implementations/base/GregtechMeta_MultiBlockBase.java10
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.