aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorCookieBrigade <138534411+CookieBrigade@users.noreply.github.com>2024-07-26 07:58:39 -0500
committerGitHub <noreply@github.com>2024-07-26 19:58:39 +0700
commit80ef05e7ac87b8555e029a6bb7fa5c7de1da23b8 (patch)
treebbc0c3e30ba657e05bfa6e49e842073849ffc2bf /src/main/java/gregtech/api/util
parent790ce9fe5a5862888d85314d7c09bd975f85d278 (diff)
downloadGT5-Unofficial-80ef05e7ac87b8555e029a6bb7fa5c7de1da23b8.tar.gz
GT5-Unofficial-80ef05e7ac87b8555e029a6bb7fa5c7de1da23b8.tar.bz2
GT5-Unofficial-80ef05e7ac87b8555e029a6bb7fa5c7de1da23b8.zip
Fixes fluid extractor recipes that come from the squeezer (#2770)
Fixes fluid extractor recipes that come from forestry Co-authored-by: BucketBrigade <apple12a1@hotmail.com>
Diffstat (limited to 'src/main/java/gregtech/api/util')
-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);