-
Bug
-
Resolution: Fixed
-
Minecraft 16w40a, 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
- Set the world spawn at your current position or got to the world spawn
- Build a circle of rails, including powered rails, around it
- 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}]}]}
- Push the minecart
- 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.
- is duplicated by
-
MC-136679 Compass Heading Bug
- Resolved
-
MC-166490 Compass shows the same direction for multiple players
- Resolved
-
MC-176734 If a piglin holds a compass, all other compasses follow the piglin's orientation
- Resolved
-
MC-186014 Multiple compasses from different players interfere with each other
- Resolved
- relates to
-
MC-133049 Compasses don't point to the correct location when in an item frame on the ground or on the ceiling
- Resolved