mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-10-30 06:10:51 +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.Ingredient;
|
||||||
import net.minecraft.world.item.crafting.ShapedRecipe;
|
import net.minecraft.world.item.crafting.ShapedRecipe;
|
||||||
import net.minecraft.world.item.crafting.ShapelessRecipe;
|
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.item.enchantment.Enchantments;
|
||||||
import net.minecraft.world.level.ItemLike;
|
import net.minecraft.world.level.ItemLike;
|
||||||
import net.neoforged.neoforge.common.CommonHooks;
|
import net.neoforged.neoforge.common.CommonHooks;
|
||||||
|
@ -51,8 +52,8 @@ public class ItemRecipeGenerator extends RecipeProvider {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void buildRecipes(@Nonnull RecipeOutput output) {
|
protected void buildRecipes(@Nonnull RecipeOutput output, HolderLookup.Provider holderLookup) {
|
||||||
var enchantmentLookup = CommonHooks.resolveLookup(Registries.ENCHANTMENT);
|
HolderLookup.RegistryLookup<Enchantment> enchantmentLookup = holderLookup.lookupOrThrow(Registries.ENCHANTMENT);
|
||||||
var recipeOutput = new NoAdvRecipeOutput(output);
|
var recipeOutput = new NoAdvRecipeOutput(output);
|
||||||
|
|
||||||
generateAOIT(recipeOutput);
|
generateAOIT(recipeOutput);
|
||||||
|
|
Loading…
Reference in a new issue