src/main/java/wutdahack/actuallyunbreaking/mixin/UnbreakingEnchantmentMixin.java
// items can't have mending and unbreaking together if enabled in the config
items can't have mending and unbreaking together if enabled in the config
items can ' t have mending and unbreaking together if enabled in the config
@Override
    protected boolean canAccept(Enchantment other) {
        if (ActuallyUnbreaking.getInstance().config.mendingIncompatibility) {
            return !(other instanceof MendingEnchantment) && super.canAccept(other);
        } else {
            return super.canAccept(other);
        }
    }
@ Override protected boolean canAccept ( Enchantment other ) { if ( ActuallyUnbreaking . getInstance ( ) . config . mendingIncompatibility ) { return ! ( other instanceof MendingEnchantment ) && super . canAccept ( other ) ; } else { return super . canAccept ( other ) ; } }
items can't have mending and unbreaking together if enabled in the config
items can ' t have mending and unbreaking together if enabled in the config