From 7fb95fc6464c573b3464aff81837d9fc22c835d0 Mon Sep 17 00:00:00 2001 From: serenibyss <10861407+serenibyss@users.noreply.github.com> Date: Thu, 19 Sep 2024 22:40:28 -0500 Subject: [PATCH] Add dev debug upgrade items --- .../java/tectech/loader/recipe/BaseRecipeLoader.java | 2 ++ src/main/java/tectech/loader/recipe/Godforge.java | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/tectech/loader/recipe/BaseRecipeLoader.java b/src/main/java/tectech/loader/recipe/BaseRecipeLoader.java index 9e08460fb6e..180e8514f4a 100644 --- a/src/main/java/tectech/loader/recipe/BaseRecipeLoader.java +++ b/src/main/java/tectech/loader/recipe/BaseRecipeLoader.java @@ -43,6 +43,8 @@ public void run() { new Extractor().run(); new ResearchStationAssemblyLine().run(); new Godforge().run(); + } else { + Godforge.runDevEnvironmentRecipes(); } } } diff --git a/src/main/java/tectech/loader/recipe/Godforge.java b/src/main/java/tectech/loader/recipe/Godforge.java index ed5fc587427..30e3a37f2ce 100644 --- a/src/main/java/tectech/loader/recipe/Godforge.java +++ b/src/main/java/tectech/loader/recipe/Godforge.java @@ -20,6 +20,7 @@ import java.util.HashMap; import java.util.List; +import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidStack; @@ -755,6 +756,17 @@ public void run() { } + public static void runDevEnvironmentRecipes() { + // put something in here to not crash the game in dev environment when opening the manual insertion window + godforgeUpgradeMats.put(0, new ItemStack[] { new ItemStack(Blocks.cobblestone) }); + godforgeUpgradeMats.put(5, new ItemStack[] { new ItemStack(Blocks.cobblestone) }); + godforgeUpgradeMats.put(7, new ItemStack[] { new ItemStack(Blocks.cobblestone) }); + godforgeUpgradeMats.put(11, new ItemStack[] { new ItemStack(Blocks.cobblestone) }); + godforgeUpgradeMats.put(26, new ItemStack[] { new ItemStack(Blocks.cobblestone) }); + godforgeUpgradeMats.put(29, new ItemStack[] { new ItemStack(Blocks.cobblestone) }); + godforgeUpgradeMats.put(30, new ItemStack[] { new ItemStack(Blocks.cobblestone) }); + } + public static void initMoltenModuleRecipes() { for (GTRecipe recipe : RecipeMaps.blastFurnaceRecipes.getAllRecipes()) { List itemOutputs = new ArrayList<>(1);