diff --git a/Xplat/src/main/java/vazkii/botania/data/recipes/CraftingRecipeProvider.java b/Xplat/src/main/java/vazkii/botania/data/recipes/CraftingRecipeProvider.java index 141ddb1eec..8a68df2974 100644 --- a/Xplat/src/main/java/vazkii/botania/data/recipes/CraftingRecipeProvider.java +++ b/Xplat/src/main/java/vazkii/botania/data/recipes/CraftingRecipeProvider.java @@ -85,7 +85,7 @@ public void buildRecipes(RecipeOutput recipeOutput) { } public static Criterion conditionsFromItem(ItemLike item) { - return RecipeProviderAccessor.botania_has(item); + return RecipeProviderAccessor.botania_inventoryTrigger(ItemPredicate.Builder.item().of(item)); } private static Criterion conditionsFromItems(ItemLike... items) { @@ -98,7 +98,7 @@ private static Criterion conditionsFromI } public static Criterion conditionsFromTag(TagKey tag) { - return RecipeProviderAccessor.botania_has(tag); + return RecipeProviderAccessor.botania_inventoryTrigger(ItemPredicate.Builder.item().of(tag)); } /** Addons: override this to return your modid */ diff --git a/Xplat/src/main/java/vazkii/botania/mixin/RecipeProviderAccessor.java b/Xplat/src/main/java/vazkii/botania/mixin/RecipeProviderAccessor.java index e3fa9ee191..015fcf9ebe 100644 --- a/Xplat/src/main/java/vazkii/botania/mixin/RecipeProviderAccessor.java +++ b/Xplat/src/main/java/vazkii/botania/mixin/RecipeProviderAccessor.java @@ -21,16 +21,6 @@ @Mixin(RecipeProvider.class) public interface RecipeProviderAccessor { - @Invoker("has") - static Criterion botania_has(ItemLike itemLike) { - throw new IllegalStateException("Direct call to invoker method"); - } - - @Invoker("has") - static Criterion botania_has(TagKey tag) { - throw new IllegalStateException("Direct call to invoker method"); - } - @Invoker("inventoryTrigger") static Criterion botania_inventoryTrigger(ItemPredicate.Builder... $$0) { throw new IllegalStateException("Direct call to invoker method");