Not to be confuse with the lodestone compasses.
If you enchant your compass in creative mode with an enchanted book, the compass is enchanted, but the glint is not shown. This is likely caused by the fuction of the lodestone compass.
- Go to creative mode
- Have a compass and an enchanted book with a random enchantment
- Put the compass and the book in an anvil
→ The compass is enchanted without having the glint.
The method returning for whether the enchantment glint should be shown for a compass item only checks if it is a lodestone compass.
The logic should instead be: If lodestone, then show glint, otherwise fall back to default logic.