diff --git a/build.gradle b/build.gradle index b040f7e0..9bec39fd 100644 --- a/build.gradle +++ b/build.gradle @@ -168,7 +168,7 @@ curse { projectId = project.ee3_curseforge_projectid apiKey = project.ee3_curseforge_apikey changelog = project.hasProperty('changelog') ? project.changelog : '' - releaseType = 'alpha' + releaseType = config.release_type additionalArtifact devJar } diff --git a/build.properties b/build.properties index ffe06fd3..fdb823c8 100644 --- a/build.properties +++ b/build.properties @@ -3,3 +3,4 @@ minecraft_version = 1.7.10 forge_version = 10.13.2.1284 mod_version = 0.2 +release_type = alpha diff --git a/src/main/java/com/pahimar/ee3/recipe/RecipeRegistry.java b/src/main/java/com/pahimar/ee3/recipe/RecipeRegistry.java index c780c4f2..8756c295 100644 --- a/src/main/java/com/pahimar/ee3/recipe/RecipeRegistry.java +++ b/src/main/java/com/pahimar/ee3/recipe/RecipeRegistry.java @@ -13,6 +13,7 @@ public class RecipeRegistry private static RecipeRegistry recipeRegistry = null; private Multimap> recipeMap; + private ImmutableMultimap> immutableRecipeMap; private RecipeRegistry() { @@ -70,6 +71,11 @@ public class RecipeRegistry public Multimap> getRecipeMappings() { - return ImmutableMultimap.copyOf(recipeRegistry.recipeMap); + if (immutableRecipeMap == null) + { + return ImmutableMultimap.copyOf(recipeRegistry.recipeMap); + } + + return immutableRecipeMap; } } \ No newline at end of file