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

Compasses with custom enchantments does not display enchanted glint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w13a, 20w13b
    • Fix Version/s: 20w14a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Rendering
    • Mojang Priority:
      Low

      Description

      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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              CHK: