aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/gregtech/api/util/GT_Forestry_Compat.java15
1 files changed, 8 insertions, 7 deletions
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);