I’m looking to make a simple mod to allow the combination of Mending and Infinity enchantments in 1.15.2.
It looks like the simple solution is to patch net.minecraft.enchantment.InfinityEnchantment.canApplyTogether() to simply return super.canApplyTogether().
I want to avoid using a coremod if possible. What's the best way to accomplish this?