From b70c791666b5994fd86c45df8e3dfa3e28688385 Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sun, 11 Aug 2024 20:37:10 +0200 Subject: [PATCH] Fix lookup mistake in recipe generator --- .../ellpeck/actuallyadditions/data/ItemRecipeGenerator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/data/ItemRecipeGenerator.java b/src/main/java/de/ellpeck/actuallyadditions/data/ItemRecipeGenerator.java index 8ae599546..7c16a3346 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/data/ItemRecipeGenerator.java +++ b/src/main/java/de/ellpeck/actuallyadditions/data/ItemRecipeGenerator.java @@ -29,6 +29,7 @@ import net.minecraft.world.item.Items; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.item.crafting.ShapedRecipe; import net.minecraft.world.item.crafting.ShapelessRecipe; +import net.minecraft.world.item.enchantment.Enchantment; import net.minecraft.world.item.enchantment.Enchantments; import net.minecraft.world.level.ItemLike; import net.neoforged.neoforge.common.CommonHooks; @@ -51,8 +52,8 @@ public class ItemRecipeGenerator extends RecipeProvider { } @Override - protected void buildRecipes(@Nonnull RecipeOutput output) { - var enchantmentLookup = CommonHooks.resolveLookup(Registries.ENCHANTMENT); + protected void buildRecipes(@Nonnull RecipeOutput output, HolderLookup.Provider holderLookup) { + HolderLookup.RegistryLookup enchantmentLookup = holderLookup.lookupOrThrow(Registries.ENCHANTMENT); var recipeOutput = new NoAdvRecipeOutput(output); generateAOIT(recipeOutput);