From bd8497f31c97a7343e16175f3491fdc3291b4627 Mon Sep 17 00:00:00 2001 From: Relentless Date: Sat, 17 Sep 2022 19:42:48 +0200 Subject: [PATCH] don't handle unnecessary duplicate links --- .../com/almostreliable/unified/recipe/RecipeTransformer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/main/java/com/almostreliable/unified/recipe/RecipeTransformer.java b/Common/src/main/java/com/almostreliable/unified/recipe/RecipeTransformer.java index fe4bc3a..5a870de 100644 --- a/Common/src/main/java/com/almostreliable/unified/recipe/RecipeTransformer.java +++ b/Common/src/main/java/com/almostreliable/unified/recipe/RecipeTransformer.java @@ -112,7 +112,7 @@ public class RecipeTransformer { } for (RecipeLink recipeLink : duplicationConfig.isStrictMode() ? recipeLinks : unified) { - if (handleDuplicate(recipeLink, recipeLinks)) { + if (handleDuplicate(recipeLink, recipeLinks) && recipeLink.getDuplicateLink() != null) { duplicates.add(recipeLink.getDuplicateLink()); } }