From b8a1bca12c903b6644ec468e44ef0d81ef810bd3 Mon Sep 17 00:00:00 2001 From: canitzp Date: Sat, 24 Oct 2015 21:13:06 +0200 Subject: [PATCH] -Added Chocolate Toast --- .../actuallyadditions/config/values/ConfigCrafting.java | 1 + .../ellpeck/actuallyadditions/crafting/FoodCrafting.java | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/ellpeck/actuallyadditions/config/values/ConfigCrafting.java b/src/main/java/ellpeck/actuallyadditions/config/values/ConfigCrafting.java index bed3e123e..93bf4fa85 100644 --- a/src/main/java/ellpeck/actuallyadditions/config/values/ConfigCrafting.java +++ b/src/main/java/ellpeck/actuallyadditions/config/values/ConfigCrafting.java @@ -52,6 +52,7 @@ public enum ConfigCrafting{ CHOCOLATE("Chocolate", ConfigCategories.FOOD_CRAFTING), CHOCOLATE_CAKE("Chocolate Cake", ConfigCategories.FOOD_CRAFTING), TOAST("Toast", ConfigCategories.FOOD_CRAFTING), + CHOCOTOAST("ChocoToast", ConfigCategories.FOOD_CRAFTING), LEAF_BLOWER("Leaf Blower", ConfigCategories.ITEMS_CRAFTING), LEAF_BLOWER_ADVANCED("Advanced Leaf Blower", ConfigCategories.ITEMS_CRAFTING), diff --git a/src/main/java/ellpeck/actuallyadditions/crafting/FoodCrafting.java b/src/main/java/ellpeck/actuallyadditions/crafting/FoodCrafting.java index 65ca8faa7..bcc0b7629 100644 --- a/src/main/java/ellpeck/actuallyadditions/crafting/FoodCrafting.java +++ b/src/main/java/ellpeck/actuallyadditions/crafting/FoodCrafting.java @@ -40,6 +40,7 @@ public class FoodCrafting{ public static IRecipe recipeChocolate; public static IRecipe recipeChocolateCake; public static IRecipe recipeToast; + public static IRecipe recipeChocoToast; public static void init(){ @@ -195,6 +196,12 @@ public class FoodCrafting{ new ItemStack(Items.bread)); recipeToast = Util.GetRecipes.lastIRecipe(); } + + //ChocoToast: + if(ConfigCrafting.CHOCOTOAST.isEnabled()){ + GameRegistry.addShapelessRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.CHOCOTOAST.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.TOAST.ordinal()), new ItemStack(InitItems.itemFoods, 1, TheFoods.CHOCOLATE.ordinal())); + recipeChocoToast = Util.GetRecipes.lastIRecipe(); + } } }