PrepareItemCraftEvent#isRepair() seems to always return false on 1.20 versions of spigot, making it unreliable in checking if the current recipe is a repairing recipe. On 1.19 this seems to work properly
The following code used:
@EventHandler(priority = EventPriority.HIGHEST)public void onPrepareCraft(PrepareItemCraftEvent e){ System.out.println("is repair: " + e.isRepair());
{color:#cc7832}}
On 1.20 the following recipe
returns
On 1.19 this returns true instead.
A workaround is checking if all items in the grid are identical, with max durabilities greater than 0.