From 5d910333ea9fe07fe28e0808de79c14a96f7a3c0 Mon Sep 17 00:00:00 2001 From: chochem <40274384+chochem@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:11:02 +0100 Subject: [PATCH] Block fixes (#87) * not for gtnh * sa --- .../java/twilightforest/item/TFRecipes.java | 76 ++++++++++--------- 1 file changed, 39 insertions(+), 37 deletions(-) diff --git a/src/main/java/twilightforest/item/TFRecipes.java b/src/main/java/twilightforest/item/TFRecipes.java index b1e581cd3d..1fd97ec282 100644 --- a/src/main/java/twilightforest/item/TFRecipes.java +++ b/src/main/java/twilightforest/item/TFRecipes.java @@ -12,6 +12,7 @@ import net.minecraftforge.oredict.RecipeSorter; import net.minecraftforge.oredict.ShapelessOreRecipe; +import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.registry.GameRegistry; import twilightforest.TwilightForestMod; import twilightforest.block.BlockTFFireJet; @@ -604,43 +605,44 @@ public static void registerRecipes() { new ItemStack(TFItems.chainBlock), new Object[] { TFItems.knightmetalRing, TFItems.knightMetal, TFItems.knightMetal, TFItems.knightMetal, TFBlocks.knightmetalStorage }); - - GameRegistry.addShapelessRecipe( - new ItemStack(TFItems.knightMetal, 9), - new Object[] { new ItemStack(TFBlocks.knightmetalStorage) }); - GameRegistry.addRecipe( - new ItemStack(TFBlocks.knightmetalStorage), - new Object[] { "###", "###", "###", '#', TFItems.knightMetal }); - GameRegistry.addShapelessRecipe( - new ItemStack(TFItems.arcticFur, 9), - new Object[] { new ItemStack(TFBlocks.arcticFurStorage) }); - GameRegistry.addRecipe( - new ItemStack(TFBlocks.arcticFurStorage), - new Object[] { "###", "###", "###", '#', TFItems.arcticFur }); - GameRegistry.addShapelessRecipe( - new ItemStack(TFItems.carminite, 9), - new Object[] { new ItemStack(TFBlocks.carminiteStorage) }); - GameRegistry.addRecipe( - new ItemStack(TFBlocks.carminiteStorage), - new Object[] { "###", "###", "###", '#', TFItems.carminite }); - GameRegistry.addShapelessRecipe( - new ItemStack(TFItems.fieryIngot, 9), - new Object[] { new ItemStack(TFBlocks.fieryMetalStorage) }); - GameRegistry.addRecipe( - new ItemStack(TFBlocks.fieryMetalStorage), - new Object[] { "###", "###", "###", '#', TFItems.fieryIngot }); - GameRegistry.addShapelessRecipe( - new ItemStack(TFItems.ironwoodIngot, 9), - new Object[] { new ItemStack(TFBlocks.ironwoodStorage) }); - GameRegistry.addRecipe( - new ItemStack(TFBlocks.ironwoodStorage), - new Object[] { "###", "###", "###", '#', TFItems.ironwoodIngot }); - GameRegistry.addShapelessRecipe( - new ItemStack(TFItems.steeleafIngot, 9), - new Object[] { new ItemStack(TFBlocks.steeleafStorage) }); - GameRegistry.addRecipe( - new ItemStack(TFBlocks.steeleafStorage), - new Object[] { "###", "###", "###", '#', TFItems.steeleafIngot }); + if (!Loader.isModLoaded("dreamcraft")) { + GameRegistry.addShapelessRecipe( + new ItemStack(TFItems.knightMetal, 9), + new Object[] { new ItemStack(TFBlocks.knightmetalStorage) }); + GameRegistry.addRecipe( + new ItemStack(TFBlocks.knightmetalStorage), + new Object[] { "###", "###", "###", '#', TFItems.knightMetal }); + GameRegistry.addShapelessRecipe( + new ItemStack(TFItems.arcticFur, 9), + new Object[] { new ItemStack(TFBlocks.arcticFurStorage) }); + GameRegistry.addRecipe( + new ItemStack(TFBlocks.arcticFurStorage), + new Object[] { "###", "###", "###", '#', TFItems.arcticFur }); + GameRegistry.addShapelessRecipe( + new ItemStack(TFItems.carminite, 9), + new Object[] { new ItemStack(TFBlocks.carminiteStorage) }); + GameRegistry.addRecipe( + new ItemStack(TFBlocks.carminiteStorage), + new Object[] { "###", "###", "###", '#', TFItems.carminite }); + GameRegistry.addShapelessRecipe( + new ItemStack(TFItems.fieryIngot, 9), + new Object[] { new ItemStack(TFBlocks.fieryMetalStorage) }); + GameRegistry.addRecipe( + new ItemStack(TFBlocks.fieryMetalStorage), + new Object[] { "###", "###", "###", '#', TFItems.fieryIngot }); + GameRegistry.addShapelessRecipe( + new ItemStack(TFItems.ironwoodIngot, 9), + new Object[] { new ItemStack(TFBlocks.ironwoodStorage) }); + GameRegistry.addRecipe( + new ItemStack(TFBlocks.ironwoodStorage), + new Object[] { "###", "###", "###", '#', TFItems.ironwoodIngot }); + GameRegistry.addShapelessRecipe( + new ItemStack(TFItems.steeleafIngot, 9), + new Object[] { new ItemStack(TFBlocks.steeleafStorage) }); + GameRegistry.addRecipe( + new ItemStack(TFBlocks.steeleafStorage), + new Object[] { "###", "###", "###", '#', TFItems.steeleafIngot }); + } }