The Bug:
Locking lodestone compasses to lodestones they're already locked to while in creative mode plays the item pickup animation.
Steps to Reproduce:
Switch into creative mode and obtain a compass and a lodestone.
Place down the lodestone and lock the compass to it.
Whilst holding the lodestone compass you now have, attempt to lock it multiple times to the same lodestone you previously placed.
Pay close attention to the lodestone compass in your hotbar as you do this,
Take note as to whether or not locking lodestone compasses to lodestones they're already locked to while in creative mode plays the item pickup animation.
Observed Behavior:
The item pickup animation is played.
Expected Behavior:
The item pickup animation would not be played.
Can confirm.