Update NeoForge support (Fix #1400)

This commit is contained in:
Mrbysco 2024-05-25 16:49:21 +02:00
parent b4a6e91a34
commit 60703b3004
2 changed files with 4 additions and 4 deletions

View file

@ -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;
}

View file

@ -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;
}