Hey there, I'm running into a crash with the Music Control mod on Minecraft 1.21.7 using Fabric. The game crashes when it tries to play music—this seems to happen when entering the Nether or when a music event is triggered. Based on the crash report, it looks like it’s caused by a NullPointerException inside the getListFromEvent() method in MusicIdentifier.java. Specifically, the error is: Cannot invoke "java.util.Collection.iterator()" because "c" is null. This happens at line 104 when trying to call addAll() on what I assume is a null collection.
I'm using version music_control-1.9.2+1.21.6 with a bunch of other mods, but the stack trace seems to clearly point to this mod as the root cause. I believe a null check before iterating or using .addAll() would prevent this from crashing the game. If needed, I can provide the full crash log and a list of all mods I'm using.
Let me know if there's any extra info you'd like from me. Thanks for the awesome mod—I'd love to keep using it once this is fixed!
Hey there, I'm running into a crash with the Music Control mod on Minecraft 1.21.7 using Fabric. The game crashes when it tries to play music—this seems to happen when entering the Nether or when a music event is triggered. Based on the crash report, it looks like it’s caused by a NullPointerException inside the getListFromEvent() method in MusicIdentifier.java. Specifically, the error is: Cannot invoke "java.util.Collection.iterator()" because "c" is null. This happens at line 104 when trying to call addAll() on what I assume is a null collection.
I'm using version music_control-1.9.2+1.21.6 with a bunch of other mods, but the stack trace seems to clearly point to this mod as the root cause. I believe a null check before iterating or using .addAll() would prevent this from crashing the game. If needed, I can provide the full crash log and a list of all mods I'm using.
Let me know if there's any extra info you'd like from me. Thanks for the awesome mod—I'd love to keep using it once this is fixed!