diff --git a/src/main/java/moe/nekojimi/chords/MusicHandler.java b/src/main/java/moe/nekojimi/chords/MusicHandler.java index e24e689..765a926 100644 --- a/src/main/java/moe/nekojimi/chords/MusicHandler.java +++ b/src/main/java/moe/nekojimi/chords/MusicHandler.java @@ -38,7 +38,7 @@ public class MusicHandler implements AudioSendHandler, Closeable, Consumer playingTracks = new ArrayList<>(); @@ -61,6 +61,16 @@ public class MusicHandler implements AudioSendHandler, Closeable, Consumer t.getTrack() == track)) + return false; + if (track == null) return false; if (immediate) @@ -82,30 +94,19 @@ public class MusicHandler implements AudioSendHandler, Closeable, Consumer