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

Client rendering other player or mob holding compass influences compass of user

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w17a
    • Minecraft 16w40a, (15)
      Minecraft 1.11, Minecraft 16w50a, Minecraft 1.11.2, Minecraft 17w16b, Minecraft 1.12, Minecraft 1.12.2, Minecraft 17w50a, Minecraft 18w43b, 1.14.4, 19w46a, 1.15 Pre-Release 2, 1.15.2, 20w13b, 20w15a, 20w16a
    • Confirmed
    • Items

      The bug

      When the client renders another mob or player holding a compass the compass of the user is affected by the other mob or player.

      How to reproduce

      1. Set the world spawn at your current position or got to the world spawn
      2. Build a circle of rails, including powered rails, around it
      3. Use the following command while standing on the rails
        /summon minecart ~ ~ ~ {Passengers:[{id:"zombie",ArmorItems:[{},{},{},{id:"skeleton_skull",Count:1b}],HandItems:[{id:"compass",Count:1b}]}]}
        
      4. Push the minecart
      5. Put a compass in your hotbar and don't move
        → The compass needle moves despite neither you are moving nor the world spawn point being changed

      Code analysis

      Based on 1.11 decompiled using MCP 9.35 rc1

      This happens because the IItemPropertyGetter of the compass item has attributes. This should not be the case as the IItemPropertyGetter belongs to the item constant which is used for everything. Because of this rendering a mob or player which is holding a compass influences how the compass is rendered for the user.

          [MC-108598] Client rendering other player or mob holding compass influences compass of user

          Confirmed fixed in 20w17a.

          [Mod] violine1101 added a comment - Confirmed fixed in 20w17a.

          Sealbudsman added a comment -

          Fixed in 20w17a!

          Sealbudsman added a comment - Fixed in 20w17a!

          The mob's compass affects the player's compass even if the mob is hidden behind a wall. However, if the player turns around so that the mob is completely off-screen, the player's compass functions normally.

          [Helper] pine1needle added a comment - The mob's compass affects the player's compass even if the mob is hidden behind a wall. However, if the player turns around so that the mob is completely off-screen, the player's compass functions normally.

          Marcono1234 added a comment -

          Please alway include for which version you confirm a bug.

          Marcono1234 added a comment - Please alway include for which version you confirm a bug.

          manuelgu added a comment -

          I can confirm this.

          manuelgu added a comment - I can confirm this.

            panda4994 [Mojang] Panda
            mitchellcairns Mitchell Cairns
            Votes:
            11 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: