From b44d061f6ca95236a873bb0835d0e2fd77b96851 Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Thu, 24 May 2018 07:01:27 +1000 Subject: $ Tried to fix GT ItemList values being called too early when certain mods are loaded, causing them to not be loaded when GT++ is running PreInit(). $ Rewrote system that Autogenerates Recipes for Materials, migrating all recipes to be generated in PostInit() stage now. --- .../gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java') diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java index ec015b2690..4f2a4ff43d 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java @@ -1,5 +1,8 @@ package gtPlusPlus.xmod.gregtech.loaders; +import java.util.HashSet; +import java.util.Set; + import net.minecraft.item.ItemStack; import gregtech.api.util.GT_ModHandler; @@ -12,10 +15,12 @@ import gtPlusPlus.core.util.minecraft.RecipeUtils; public class RecipeGen_ShapedCrafting implements Runnable{ + public static final Set mRecipeGenMap = new HashSet(); final Material toGenerate; public RecipeGen_ShapedCrafting(final Material M){ this.toGenerate = M; + mRecipeGenMap.add(this); } @Override @@ -23,7 +28,7 @@ public class RecipeGen_ShapedCrafting implements Runnable{ generateRecipes(this.toGenerate); } - public static void generateRecipes(final Material material){ + private void generateRecipes(final Material material){ Logger.WARNING("Generating Shaped Crafting recipes for "+material.getLocalizedName()); //TODO if (!CORE.GTNH) { -- cgit