The bug
When a compass is dropped, it always points up. Works with normal compasses as well as lodestone compasses
To reproduce (for lodestone compasses)
Use a compass on a lodestone
Break the lodestone
The compass starts shaking
Drop the compass
→ ❌ It points up instead of shaking like in the inventory
This happens in 1.15.2 for regular compasses and in 20w15a for both regular and lodestone compasses.