From 60703b3004267619819a135b5afaf54e75498b0c Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sat, 25 May 2024 16:49:21 +0200 Subject: [PATCH] Update NeoForge support (Fix #1400) --- .../actuallyadditions/mod/crafting/RecipeKeepDataShaped.java | 4 ++-- .../mod/crafting/RecipeKeepDataShapeless.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }