diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-05-24 07:01:27 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-05-24 07:01:27 +1000 |
commit | b44d061f6ca95236a873bb0835d0e2fd77b96851 (patch) | |
tree | 818807e7b6c95854017a87f3f9384fd32b04043e /src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java | |
parent | c40825297fc1008c72bfebca09af9aabe15c2832 (diff) | |
download | GT5-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_Plates.java')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java index 85b87b1d13..69afb4dec0 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.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.GregTech_API; @@ -12,10 +15,12 @@ import gtPlusPlus.core.material.Material; public class RecipeGen_Plates implements Runnable{ + public static final Set<Runnable> mRecipeGenMap = new HashSet<Runnable>(); final Material toGenerate; public RecipeGen_Plates(final Material M){ this.toGenerate = M; + mRecipeGenMap.add(this); } @Override @@ -23,7 +28,7 @@ public class RecipeGen_Plates implements Runnable{ generateRecipes(this.toGenerate); } - public static void generateRecipes(final Material material){ + private void generateRecipes(final Material material){ final int tVoltageMultiplier = material.getMeltingPointK() >= 2800 ? 60 : 15; final ItemStack ingotStackOne = material.getIngot(1); |