From 80ef05e7ac87b8555e029a6bb7fa5c7de1da23b8 Mon Sep 17 00:00:00 2001 From: CookieBrigade <138534411+CookieBrigade@users.noreply.github.com> Date: Fri, 26 Jul 2024 07:58:39 -0500 Subject: Fixes fluid extractor recipes that come from the squeezer (#2770) Fixes fluid extractor recipes that come from forestry Co-authored-by: BucketBrigade --- src/main/java/gregtech/api/util/GT_Forestry_Compat.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/main/java/gregtech/api/util/GT_Forestry_Compat.java b/src/main/java/gregtech/api/util/GT_Forestry_Compat.java index d383d643d7..554964a4ed 100644 --- a/src/main/java/gregtech/api/util/GT_Forestry_Compat.java +++ b/src/main/java/gregtech/api/util/GT_Forestry_Compat.java @@ -171,13 +171,14 @@ public class GT_Forestry_Compat { try { for (ISqueezerRecipe tRecipe : RecipeManagers.squeezerManager.recipes()) { if ((tRecipe.getResources().length == 1) && (tRecipe.getFluidOutput() != null) - && (tRecipe.getResources()[0] != null) - && (tRecipe.getRemnants() != null)) { - GT_Values.RA.stdBuilder() - .itemInputs(tRecipe.getResources()[0]) - .itemOutputs(tRecipe.getRemnants()) - .outputChances((int) (tRecipe.getRemnantsChance() * 10000)) - .fluidOutputs(tRecipe.getFluidOutput()) + && (tRecipe.getResources()[0] != null)) { + GT_RecipeBuilder recipeBuilder = GT_Values.RA.stdBuilder(); + recipeBuilder.itemInputs(tRecipe.getResources()[0]); + if (tRecipe.getRemnants() != null) { + recipeBuilder.itemOutputs(tRecipe.getRemnants()) + .outputChances((int) (tRecipe.getRemnantsChance() * 10000)); + } + recipeBuilder.fluidOutputs(tRecipe.getFluidOutput()) .duration(1 * SECONDS + 12 * TICKS) .eut(8) .addTo(RecipeMaps.fluidExtractionRecipes); -- cgit