From d89bfe8cb1000d9db66c09db7963141a25467308 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 16 Aug 2015 21:21:23 +0200 Subject: [PATCH] NEI Handler shows how much coffee is used per cup --- .../actuallyadditions/nei/CoffeeMachineRecipeHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ellpeck/actuallyadditions/nei/CoffeeMachineRecipeHandler.java b/src/main/java/ellpeck/actuallyadditions/nei/CoffeeMachineRecipeHandler.java index 4ca899444..1b2b9eb8b 100644 --- a/src/main/java/ellpeck/actuallyadditions/nei/CoffeeMachineRecipeHandler.java +++ b/src/main/java/ellpeck/actuallyadditions/nei/CoffeeMachineRecipeHandler.java @@ -5,6 +5,7 @@ import codechicken.nei.NEIServerUtils; import codechicken.nei.PositionedStack; import codechicken.nei.recipe.RecipeInfo; import codechicken.nei.recipe.TemplateRecipeHandler; +import ellpeck.actuallyadditions.config.values.ConfigIntValues; import ellpeck.actuallyadditions.inventory.gui.GuiCoffeeMachine; import ellpeck.actuallyadditions.items.InitItems; import ellpeck.actuallyadditions.items.ItemCoffee; @@ -40,7 +41,7 @@ public class CoffeeMachineRecipeHandler extends TemplateRecipeHandler{ public CachedCoffee(ItemCoffee.Ingredient ingredient){ this.cup = new PositionedStack(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CUP.ordinal()), 45, 39); - this.coffeeBeans = new PositionedStack(new ItemStack(InitItems.itemCoffeeBean), 2, 39); + this.coffeeBeans = new PositionedStack(new ItemStack(InitItems.itemCoffeeBean, ConfigIntValues.COFFEE_CACHE_USED_PER_ITEM.getValue()), 2, 39); this.ingredientStack = new PositionedStack(ingredient.ingredient.copy(), 90, 21); this.setupResult(ingredient); this.extraText = ingredient.getExtraText();