aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-04-29 22:00:16 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-04-29 22:00:16 +1000
commit862066ee9009f877456982867f1dab5f53c57061 (patch)
tree958f16570358f3e01aec8942b352282b0fbac0e5
parent0184ca54f686c8e8972f702ff0b37a7ae8990f5b (diff)
downloadGT5-Unofficial-862066ee9009f877456982867f1dab5f53c57061.tar.gz
GT5-Unofficial-862066ee9009f877456982867f1dab5f53c57061.tar.bz2
GT5-Unofficial-862066ee9009f877456982867f1dab5f53c57061.zip
$ Fixed improper handling of sifter recipes, that would stack bonus chances each time it ran.
> Recipes now gain static bonuses and work as intended.
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java
index 4e22220f4c..cd64f294f8 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialSifter.java
@@ -148,10 +148,10 @@ extends GregtechMeta_MultiBlockBase {
//Make a recipe instance for the rest of the method.
final GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sSifterRecipes.findRecipe(this.getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
- baseRecipe = tRecipe;
+ baseRecipe = tRecipe.copy();
if (cloneRecipe != tRecipe || cloneRecipe == null){
- cloneRecipe = tRecipe;
+ cloneRecipe = tRecipe.copy();
Utils.LOG_INFO("Setting Recipe");
}
if (mInputStacks != tRecipe.mInputs || mInputStacks == null){
@@ -159,7 +159,7 @@ extends GregtechMeta_MultiBlockBase {
Utils.LOG_INFO("Setting Recipe Inputs");
}
if (cloneChances != tRecipe.mChances || cloneChances == null){
- cloneChances = tRecipe.mChances;
+ cloneChances = tRecipe.mChances.clone();
Utils.LOG_INFO("Setting Chances");
}
@@ -175,7 +175,7 @@ extends GregtechMeta_MultiBlockBase {
Utils.LOG_INFO("3.2");
if (cloneRecipe.mChances != null){
- outputChances = cloneRecipe.mChances;
+ outputChances = cloneRecipe.mChances.clone();
Utils.LOG_INFO("3.3");
@@ -241,7 +241,7 @@ extends GregtechMeta_MultiBlockBase {
this.mOutputItems = outputs;
this.sendLoopStart((byte) 20);
this.updateSlots();
- tRecipe.mChances = baseRecipe.mChances;
+ //tRecipe.mChances = baseRecipe.mChances;
return true;
}
}