XP not repairing Items

With vanilla 1.16 If you had an Item that needed to be repaired XP will automatically go to that item instead of giving you levels. This behavior is not available in paper, you still have to kill and then swap to the item as your man hand in order to repair that item. You also still have to take off all armor for items to repair.