Skip to content

Commit

Permalink
Allow .notConsumable() to take an IItemStack (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
BraggestSage833 authored Jun 24, 2021
1 parent ad2188d commit 18181d3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ public CTRecipeBuilder inputs(IIngredient... ingredients) {
}

@ZenMethod
public CTRecipeBuilder notConsumable(IIngredient ingredient) {
this.backingBuilder.notConsumable(new CraftTweakerIngredientWrapper(ingredient));
public CTRecipeBuilder notConsumable(IIngredient... ingredients) {
this.backingBuilder.inputsIngredients(Arrays.stream(ingredients)
.map(s -> new CountableIngredient(new CraftTweakerIngredientWrapper(s), 0))
.collect(Collectors.toList()));
return this;
}

Expand Down

0 comments on commit 18181d3

Please sign in to comment.