mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Fix lookup mistake in recipe generator
This commit is contained in:
parent
e81c6c4744
commit
b70c791666
1 changed files with 3 additions and 2 deletions
|
@ -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<Enchantment> enchantmentLookup = holderLookup.lookupOrThrow(Registries.ENCHANTMENT);
|
||||
var recipeOutput = new NoAdvRecipeOutput(output);
|
||||
|
||||
generateAOIT(recipeOutput);
|
||||
|
|
Loading…
Reference in a new issue