mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 11:29:23 +01:00
Update NeoForge support (Fix #1400)
This commit is contained in:
parent
b4a6e91a34
commit
60703b3004
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue