From d40cabbe819eb5d5673fb3ef7ddeaa8c5dc47472 Mon Sep 17 00:00:00 2001 From: rlnt Date: Tue, 14 Nov 2023 18:59:50 +0100 Subject: [PATCH] fix GregTech Modern output ingredients not being unified --- .../compat/GregTechModernRecipeUnifier.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Common/src/main/java/com/almostreliable/unified/compat/GregTechModernRecipeUnifier.java b/Common/src/main/java/com/almostreliable/unified/compat/GregTechModernRecipeUnifier.java index ee6521d..ae32de2 100644 --- a/Common/src/main/java/com/almostreliable/unified/compat/GregTechModernRecipeUnifier.java +++ b/Common/src/main/java/com/almostreliable/unified/compat/GregTechModernRecipeUnifier.java @@ -29,7 +29,19 @@ public class GregTechModernRecipeUnifier implements RecipeUnifier { RecipeConstants.OUTPUTS, RecipeConstants.TICK_OUTPUTS ).forEach(key -> - builder.put(key, (json, ctx) -> createContentReplacement(json, ctx, ctx::createResultReplacement)) + builder.put( + key, + (json, ctx) -> createContentReplacement( + json, + ctx, + element -> ctx.createResultReplacement( + element, + true, + RecipeConstants.ITEM, + RecipeConstants.INGREDIENT + ) + ) + ) ); }