I use wireless headphones for audio, which I occasionally turn off to preserve battery life. If I turn off my headphones with MC running, then I turn my headphones back on and unpause or try to load into a world, the game will crash with a NullPointerException. This seems to be caused by the audio output source being changed mid-game.
[X] I have searched this issue tracker and there is nothing similar already. Posting on a closed issue saying the crash still exists will prompt us to investigate and reopen it once we confirm your report.
[X] I can reproduce this crash consistently by following the exact steps I described above.
[ ] I have asked other people and they confirm they also crash by following the exact steps I described above.
After a little more testing I've found the crash also reliably happens if I just leave the headphones turned off. The crash seems to be caused when there is no current audio output source.
Your GTNH Discord Username
terrasleet
Your Pack Version
GT_New_Horizons_2.6.1_Java_17-21
Your Server
SP
Java Version
Java 21
Type of Server
Single Player
Your Actions
I use wireless headphones for audio, which I occasionally turn off to preserve battery life. If I turn off my headphones with MC running, then I turn my headphones back on and unpause or try to load into a world, the game will crash with a NullPointerException. This seems to be caused by the audio output source being changed mid-game.
Crash Report
https://mclo.gs/ACnIPse
Final Checklist