From de6018029852ec47f2e85a8c6ae8a01e7574e882 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 29 Jun 2017 21:00:34 +0200 Subject: [PATCH] good job breaking it, hero --- .../actuallyadditions/mod/util/crafting/RecipeHelper.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/util/crafting/RecipeHelper.java b/src/main/java/de/ellpeck/actuallyadditions/mod/util/crafting/RecipeHelper.java index cc619a107..d10a906f5 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/util/crafting/RecipeHelper.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/util/crafting/RecipeHelper.java @@ -30,12 +30,7 @@ public final class RecipeHelper{ * This adds the recipe to the list of crafting recipes. Since who cares about names, it adds it as recipesX, where X is the current recipe you are adding. */ public static void addRecipe(int j, IRecipe rec){ - if(rec.getRegistryName() == null){ - RECIPE_LIST.add(rec.setRegistryName(new ResourceLocation(MODID, "recipes"+j))); - } - else{ - RECIPE_LIST.add(rec); - } + addRecipe("recipes"+j, rec); } /* @@ -48,6 +43,7 @@ public final class RecipeHelper{ else{ RECIPE_LIST.add(rec); } + RecipeHandler.lastRecipe = rec; } /*