Attuning a compass to a lodestone, storing it in a chest, closing & re-opening the world then breaking and replacing the lodestone to another location in the world does not cause the compass in a chest to βforgetβ where the lodestone was originally placed.
Thank you for your report!
We're tracking this issue in MC-176084, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
π Bug Tracker Guidelines β π¬ Community Support β π§ Mojang Support (Technical Issues) β π§ Microsoft Support (Account Issues)
π Project Summary β βοΈ Feedback and Suggestions β π Game Wiki