aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util/GTForestryCompat.java
diff options
context:
space:
mode:
authorMary <33456283+FourIsTheNumber@users.noreply.github.com>2024-09-25 16:19:07 -0400
committerGitHub <noreply@github.com>2024-09-25 22:19:07 +0200
commitd392aef3a42041ce152e2206810a638e65a493bf (patch)
treec97e76bbc828d24e85ffbce0b61a939188151640 /src/main/java/gregtech/api/util/GTForestryCompat.java
parent5c5d94ad6517090ca6706341d3a739b490784fef (diff)
downloadGT5-Unofficial-d392aef3a42041ce152e2206810a638e65a493bf.tar.gz
GT5-Unofficial-d392aef3a42041ce152e2206810a638e65a493bf.tar.bz2
GT5-Unofficial-d392aef3a42041ce152e2206810a638e65a493bf.zip
Fix sealed wood + more collisions (#3282)
Diffstat (limited to 'src/main/java/gregtech/api/util/GTForestryCompat.java')
-rw-r--r--src/main/java/gregtech/api/util/GTForestryCompat.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/gregtech/api/util/GTForestryCompat.java b/src/main/java/gregtech/api/util/GTForestryCompat.java
index ca61c955c7..86eaa519e7 100644
--- a/src/main/java/gregtech/api/util/GTForestryCompat.java
+++ b/src/main/java/gregtech/api/util/GTForestryCompat.java
@@ -7,6 +7,8 @@ import static gregtech.api.util.GTRecipeBuilder.TICKS;
import java.util.Map;
+import net.minecraft.init.Items;
+import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import forestry.api.recipes.ICentrifugeRecipe;
@@ -170,10 +172,13 @@ public class GTForestryCompat {
public static void transferSqueezerRecipes() {
try {
for (ISqueezerRecipe tRecipe : RecipeManagers.squeezerManager.recipes()) {
- if ((tRecipe.getResources().length == 1) && (tRecipe.getFluidOutput() != null)
- && (tRecipe.getResources()[0] != null)) {
+ ItemStack[] resources = tRecipe.getResources();
+ if ((resources.length == 1) && (tRecipe.getFluidOutput() != null) && (resources[0] != null)) {
+ Item input = resources[0].getItem();
+ if (input == Items.pumpkin_seeds || input == Items.melon_seeds || input == Items.wheat_seeds)
+ return;
GTRecipeBuilder recipeBuilder = GTValues.RA.stdBuilder();
- recipeBuilder.itemInputs(tRecipe.getResources()[0]);
+ recipeBuilder.itemInputs(resources[0]);
if (tRecipe.getRemnants() != null) {
recipeBuilder.itemOutputs(tRecipe.getRemnants())
.outputChances((int) (tRecipe.getRemnantsChance() * 10000));