Skip to content

Commit

Permalink
Close #543
Browse files Browse the repository at this point in the history
Credits to kindlich for the code
  • Loading branch information
jaredlll08 committed May 29, 2018
1 parent e6dcf01 commit 8d502bb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -112,6 +112,6 @@ public static IIngredient giveBack(IIngredient ingredient, @Optional final IItem

@ZenMethod
public static IIngredient reuse(IIngredient ingredient) {
return ingredient.transformNew(item -> item);
return ingredient.transformNew(item -> item.withAmount(1));
}
}

0 comments on commit 8d502bb

Please sign in to comment.