From f41548c018ac0fce726c75102fd8b8a3115ee0f9 Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Tue, 28 Mar 2023 18:09:18 +0700 Subject: [PATCH] another music fix --- .../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 def68a3..66c4e1f 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 @@ -148,7 +148,7 @@ public class MusicPlayerPlugin extends SessionAdapter { } }; - playTask = bot.executor().schedule(task, 50, TimeUnit.MILLISECONDS); + playTask = bot.executor().scheduleAtFixedRate(task, 50, 50, TimeUnit.MILLISECONDS); if (currentSong != null) currentSong.play(); }