mojira.dev
MC-176231

Compasses with custom enchantments does not display enchanted glint

The bug

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.

How to reproduce

  1. Go to creative mode

  2. Have a compass and an enchanted book with a random enchantment

  3. Put the compass and the book in an anvil
    → ❌ The compass is enchanted without having the glint.

Code analysis

20w13b

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.

Attachments

Comments 0

No comments.

DrownedZombie

slicedlime

Confirmed

Low

Rendering

20w13a, 20w13b

20w14a

Retrieved