diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java index b2213b855..1ab9f67a3 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShaped.java @@ -10,7 +10,7 @@ import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.item.crafting.RecipeSerializer; import net.minecraft.world.item.crafting.ShapedRecipe; -import net.neoforged.neoforge.attachment.AttachmentInternals; +import net.neoforged.neoforge.attachment.AttachmentUtils; import javax.annotation.Nullable; @@ -46,7 +46,7 @@ public class RecipeKeepDataShaped extends ShapedRecipe { craftingResult.setTag(datasource.getTag().copy()); if (!datasource.isEmpty()) - AttachmentInternals.copyStackAttachments(datasource, craftingResult); + AttachmentUtils.copyStackAttachments(datasource, craftingResult); return craftingResult; } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java index 8bc287397..968256660 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/crafting/RecipeKeepDataShapeless.java @@ -21,7 +21,7 @@ import net.minecraft.world.item.crafting.CraftingBookCategory; import net.minecraft.world.item.crafting.Ingredient; import net.minecraft.world.item.crafting.RecipeSerializer; import net.minecraft.world.item.crafting.ShapelessRecipe; -import net.neoforged.neoforge.attachment.AttachmentInternals; +import net.neoforged.neoforge.attachment.AttachmentUtils; public class RecipeKeepDataShapeless extends ShapelessRecipe { public static String NAME = "copy_nbt_shapeless"; @@ -69,7 +69,7 @@ public class RecipeKeepDataShapeless extends ShapelessRecipe { } if (!datasource.isEmpty()) - AttachmentInternals.copyStackAttachments(datasource, result); + AttachmentUtils.copyStackAttachments(datasource, result); return result; }