So I got off my friend’s world, before I logged off, I was playing pigstep, then I left, and pigstep was playing even though I logged off the world.
Additional information from the comments:
This issue only occurs in singleplayer when the Enable Game Pause option is disabled, or when playing in multiplayer.
Steps to Reproduce:
Launch Minecraft
Open a world
Navigate to Settings > General and ensure Enable Game Pause is disabled
Obtain and place a Jukebox
Obtain a Music Disc and insert it into the Jukebox
Leave the world
Observed Results:
The Music Disc continues playing after leaving the world. If the player rejoins the world and destroys the Jukebox, the music continues to play. To stop the music, the player must insert and then remove a new instance of the same Music Disc.
Expected Results:
The Music Disc should stop playing immediately after leaving the world.
I can confirm the reported behavior in the 26.0.25 Preview. This issue only occurs in singleplayer when the Enable Game Pause option is disabled, or when playing in multiplayer.
Steps to Reproduce:
Launch Minecraft
Open a world
Navigate to Settings > General and ensure Enable Game Pause is disabled
Obtain and place a Jukebox
Obtain a Music Disc and insert it into the Jukebox
Leave the world
Observed Results:
The Music Disc continues playing after leaving the world. If the player rejoins the world and destroys the Jukebox, the music continues to play. To stop the music, the player must insert and then remove a new instance of the same Music Disc.
Expected Results:
The Music Disc should stop playing immediately after leaving the world.