diff options
author | Mary <33456283+FourIsTheNumber@users.noreply.github.com> | 2024-09-25 06:48:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 12:48:46 +0200 |
commit | 683e0970aea98b5d59fb0de928d130cd8e44360e (patch) | |
tree | 40bad7e9bb301f56a4ae0f9b1d08b2175b066668 /src/main/java/gregtech/api/util/GTForestryCompat.java | |
parent | 00b6c43af283b0a7a33e039718a63826d635576e (diff) | |
download | GT5-Unofficial-683e0970aea98b5d59fb0de928d130cd8e44360e.tar.gz GT5-Unofficial-683e0970aea98b5d59fb0de928d130cd8e44360e.tar.bz2 GT5-Unofficial-683e0970aea98b5d59fb0de928d130cd8e44360e.zip |
So, so, so many collisions (#3278)
Diffstat (limited to 'src/main/java/gregtech/api/util/GTForestryCompat.java')
-rw-r--r-- | src/main/java/gregtech/api/util/GTForestryCompat.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/gregtech/api/util/GTForestryCompat.java b/src/main/java/gregtech/api/util/GTForestryCompat.java index 379604205a..ca61c955c7 100644 --- a/src/main/java/gregtech/api/util/GTForestryCompat.java +++ b/src/main/java/gregtech/api/util/GTForestryCompat.java @@ -1,6 +1,5 @@ package gregtech.api.util; -import static gregtech.api.recipe.RecipeMaps.centrifugeNonCellRecipes; import static gregtech.api.recipe.RecipeMaps.centrifugeRecipes; import static gregtech.api.recipe.RecipeMaps.scannerFakeRecipes; import static gregtech.api.util.GTRecipeBuilder.SECONDS; @@ -16,6 +15,7 @@ import forestry.api.recipes.RecipeManagers; import gregtech.api.enums.GTValues; import gregtech.api.enums.ItemList; import gregtech.api.enums.Materials; +import gregtech.api.enums.Mods; import gregtech.api.recipe.RecipeMaps; public class GTForestryCompat { @@ -132,8 +132,16 @@ public class GTForestryCompat { } public static void transferCentrifugeRecipes() { + ItemStack irradiatedComb = GTModHandler.getModItem(Mods.Forestry.ID, "beeCombs", 1, 9); + try { for (ICentrifugeRecipe tRecipe : RecipeManagers.centrifugeManager.recipes()) { + ItemStack input = tRecipe.getInput(); + + // Don't transfer GT recipes to centrifuge, those recipes are made already by ItemComb + if (input.getUnlocalizedName() + .contains("gt.comb")) continue; + if (irradiatedComb != null && input.isItemEqual(irradiatedComb)) continue; Map<ItemStack, Float> outputs = tRecipe.getAllProducts(); ItemStack[] tOutputs = new ItemStack[outputs.size()]; int[] tChances = new int[outputs.size()]; @@ -151,14 +159,6 @@ public class GTForestryCompat { .duration(6 * SECONDS + 8 * TICKS) .eut(5) .addTo(centrifugeRecipes); - - GTValues.RA.stdBuilder() - .itemInputs(tRecipe.getInput()) - .itemOutputs(tOutputs) - .outputChances(tChances) - .duration(6 * SECONDS + 8 * TICKS) - .eut(5) - .addTo(centrifugeNonCellRecipes); } } catch (Throwable e) { if (GTValues.D1) { |