From 7a692130e70bb5eff3c5a7e88b6b4013053deda1 Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Wed, 30 Dec 2015 22:15:32 +0100 Subject: [PATCH] More recipematch stuff --- src/main/java/slimeknights/mantle/util/RecipeMatch.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/slimeknights/mantle/util/RecipeMatch.java b/src/main/java/slimeknights/mantle/util/RecipeMatch.java index ff05aa4..ab5702d 100644 --- a/src/main/java/slimeknights/mantle/util/RecipeMatch.java +++ b/src/main/java/slimeknights/mantle/util/RecipeMatch.java @@ -73,7 +73,11 @@ public abstract class RecipeMatch { } public static RecipeMatch ofNBT(ItemStack stack) { - return new RecipeMatch.ItemCombination(1, stack); + return ofNBT(stack, 1); + } + + public static RecipeMatch ofNBT(ItemStack stack, int matched) { + return new RecipeMatch.ItemCombination(matched, stack); } /** Removes the match from the stacks */