disallow aura mending for aura items on the enchantment table

This commit is contained in:
Ell 2021-01-14 22:51:11 +01:00
parent 84dbd90909
commit 45022cde9f

View file

@ -23,6 +23,11 @@ public class AuraMendingEnchantment extends ModEnchantment {
return super.canApply(stack) && !stack.getCapability(NaturesAuraAPI.capAuraRecharge).isPresent(); 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 @Override
public int getMaxLevel() { public int getMaxLevel() {
return 1; return 1;