diff --git a/Xplat/src/main/java/vazkii/botania/common/crafting/recipe/ArmorUpgradeRecipe.java b/Xplat/src/main/java/vazkii/botania/common/crafting/recipe/ArmorUpgradeRecipe.java index 9b11944c15..829704dbba 100644 --- a/Xplat/src/main/java/vazkii/botania/common/crafting/recipe/ArmorUpgradeRecipe.java +++ b/Xplat/src/main/java/vazkii/botania/common/crafting/recipe/ArmorUpgradeRecipe.java @@ -19,7 +19,6 @@ import net.minecraft.world.item.crafting.CraftingBookCategory; import net.minecraft.world.item.crafting.RecipeSerializer; import net.minecraft.world.item.crafting.ShapedRecipe; -import net.minecraft.world.item.enchantment.EnchantmentHelper; import org.jetbrains.annotations.NotNull; @@ -39,8 +38,8 @@ public ItemStack assemble(@NotNull CraftingContainer inv, @NotNull RegistryAcces ItemStack out = super.assemble(inv, registries); for (int i = 0; i < inv.getContainerSize(); i++) { ItemStack stack = inv.getItem(i); - if (!stack.isEmpty() && stack.getItem() instanceof ArmorItem && stack.hasTag()) { - EnchantmentHelper.setEnchantments(EnchantmentHelper.getEnchantments(stack), out); + if (stack.hasTag() && stack.getItem() instanceof ArmorItem) { + out.setTag(stack.getTag()); break; } }