From 7bfa7d2e75df1009c6fb0420d09ff9d5129628b9 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 23 Sep 2023 18:01:25 +0700 Subject: [PATCH] check for note volume == 0 and increase the notes per second --- .../chayapak/chomens_bot/plugins/MusicPlayerPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java index efed4f2..e71b071 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/MusicPlayerPlugin.java @@ -295,7 +295,7 @@ public class MusicPlayerPlugin extends Bot.Listener { while (currentSong.reachedNextNote()) { final Note note = currentSong.getNextNote(); - if (notesPerSecond > 1240) continue; + if (note.volume == 0 || notesPerSecond > 2500) continue; float key = note.pitch;