From c2ea5172788af9a0c66ad122c22659da599d77a9 Mon Sep 17 00:00:00 2001 From: iouter <3155186831@qq.com> Date: Sun, 14 Nov 2021 16:35:48 +0800 Subject: separate recipes of the multiblock mixer --- .../gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders') 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, -- cgit