From 45022cde9ff7efcd22bfeb43d4fbfb33c7713ab7 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 14 Jan 2021 22:51:11 +0100 Subject: [PATCH] disallow aura mending for aura items on the enchantment table --- .../ellpeck/naturesaura/enchant/AuraMendingEnchantment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/enchant/AuraMendingEnchantment.java b/src/main/java/de/ellpeck/naturesaura/enchant/AuraMendingEnchantment.java index 77fab023..eb4ac235 100644 --- a/src/main/java/de/ellpeck/naturesaura/enchant/AuraMendingEnchantment.java +++ b/src/main/java/de/ellpeck/naturesaura/enchant/AuraMendingEnchantment.java @@ -23,6 +23,11 @@ public class AuraMendingEnchantment extends ModEnchantment { return super.canApply(stack) && !stack.getCapability(NaturesAuraAPI.capAuraRecharge).isPresent(); } + @Override + public boolean canApplyAtEnchantingTable(ItemStack stack) { + return super.canApplyAtEnchantingTable(stack) && !stack.getCapability(NaturesAuraAPI.capAuraRecharge).isPresent(); + } + @Override public int getMaxLevel() { return 1;