aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2018-05-24 07:01:27 +1000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2018-05-24 07:01:27 +1000
commitb44d061f6ca95236a873bb0835d0e2fd77b96851 (patch)
tree818807e7b6c95854017a87f3f9384fd32b04043e /src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java
parentc40825297fc1008c72bfebca09af9aabe15c2832 (diff)
downloadGT5-Unofficial-b44d061f6ca95236a873bb0835d0e2fd77b96851.tar.gz
GT5-Unofficial-b44d061f6ca95236a873bb0835d0e2fd77b96851.tar.bz2
GT5-Unofficial-b44d061f6ca95236a873bb0835d0e2fd77b96851.zip
$ 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.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_ShapedCrafting.java7
1 files changed, 6 insertions, 1 deletions
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<Runnable> mRecipeGenMap = new HashSet<Runnable>();
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) {