From 07aeeeab3cf9284fd10cce6fe9ce73eb5ceb6fda Mon Sep 17 00:00:00 2001 From: miozune Date: Mon, 16 May 2022 23:02:58 +0900 Subject: [PATCH] Fix conflict with Thaumic Tinkerer --- .../botanichorizons/patches/GregtechPatches.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/fuzzycraft/botanichorizons/patches/GregtechPatches.java b/src/main/java/net/fuzzycraft/botanichorizons/patches/GregtechPatches.java index 7e7aab0..6464328 100644 --- a/src/main/java/net/fuzzycraft/botanichorizons/patches/GregtechPatches.java +++ b/src/main/java/net/fuzzycraft/botanichorizons/patches/GregtechPatches.java @@ -2,8 +2,10 @@ import cpw.mods.fml.common.registry.GameRegistry; import gregtech.api.enums.Materials; +import gregtech.api.enums.OrePrefixes; import gregtech.api.enums.ToolDictNames; import gregtech.api.util.GT_ModHandler; +import gregtech.api.util.GT_OreDictUnificator; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import net.fuzzycraft.botanichorizons.util.Constants; @@ -320,10 +322,16 @@ public static IRecipe addQuartzRecipes(int quartzMeta, @Nullable Object ingredie } if (ingredient != null) { - GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.quartz, 8, quartzMeta), - "QQQ", "QCQ", "QQQ", - 'Q', "gemQuartz", - 'C', ingredient)); + if (quartzMeta != Constants.QUARTZ_META_DARK) { + GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModItems.quartz, 8, quartzMeta), + "QQQ", "QCQ", "QQQ", + 'Q', "gemQuartz", + 'C', ingredient)); + } else { + // Smokey Quartz - deduplicate with Thaumic Tinkerer + GT_ModHandler.addAlloySmelterRecipe(new ItemStack(Items.quartz, 8), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Coal, 1), new ItemStack(ModItems.quartz, 8), 400, 16, false); + GT_ModHandler.addAlloySmelterRecipe(new ItemStack(Items.quartz, 8), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Charcoal, 1), new ItemStack(ModItems.quartz, 8), 400, 16, false); + } return BotaniaAPI.getLatestAddedRecipe(); } else { return null;