Skip to content

Commit

Permalink
Merge pull request #10 from GTNewHorizons/smokey
Browse files Browse the repository at this point in the history
Fix conflict with Thaumic Tinkerer
  • Loading branch information
Dream-Master authored May 16, 2022
2 parents 742ea83 + 07aeeea commit a9e2c69
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a9e2c69

Please sign in to comment.