aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/loaders
diff options
context:
space:
mode:
authoriouter <3155186831@qq.com>2021-11-14 16:35:48 +0800
committeriouter <3155186831@qq.com>2021-11-14 16:35:48 +0800
commitc2ea5172788af9a0c66ad122c22659da599d77a9 (patch)
tree71df2438c9a149cecfdb5d0555acadfb117362eb /src/Java/gtPlusPlus/xmod/gregtech/loaders
parent01f920644376e0d056b09fd6203035936af4e9ba (diff)
downloadGT5-Unofficial-c2ea5172788af9a0c66ad122c22659da599d77a9.tar.gz
GT5-Unofficial-c2ea5172788af9a0c66ad122c22659da599d77a9.tar.bz2
GT5-Unofficial-c2ea5172788af9a0c66ad122c22659da599d77a9.zip
separate recipes of the multiblock mixer
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
index b94dbfa51f..0d76114e57 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
@@ -93,7 +93,7 @@ public class RecipeGen_MultisUsingFluidInsteadOfCells {
if (aFoundFluid == null) {
for (ItemStack aBadStack : mItemsToIgnore) {
if (doesItemMatchIgnoringStackSize(aInputStack, aBadStack)) {
- continue recipe; // Skip this recipe entirely if we find an item we don't like
+ continue recipe; // Skip this recipe entirely if we find an item we don't like
}
}
if (!isEmptyCell(aInputStack)) {
@@ -152,6 +152,10 @@ public class RecipeGen_MultisUsingFluidInsteadOfCells {
aNewFluidOutputs[i] = aOutputFluidsMap.get(i);
}
+ //Skip repeatedly recipes
+ if (aOutputs.findRecipe(null, false, Integer.MAX_VALUE, aNewFluidInputs, aNewItemInputs) != null)
+ continue recipe;
+
// Add Recipe to map
GT_Recipe aNewRecipe = new GTPP_Recipe(
false,