Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-176231

Compasses with custom enchantments does not display enchanted glint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w14a
    • 20w13a, 20w13b
    • None
    • Confirmed
    • Rendering
    • Low

      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.

            slicedlime [Mojang] slicedlime
            drownedzombie01 DrownedZombie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: