mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-25 04:58:33 +01:00
disallow aura mending for aura items on the enchantment table
This commit is contained in:
parent
84dbd90909
commit
45022cde9f
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue