From 590525b03d19406939880beb1cfd06de9c2c4560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Konieczny?= Date: Sun, 15 Oct 2023 15:25:57 +0200 Subject: [PATCH] - Fixed a bug when skipping a looping track would not disable the loop --- pom.xml | 2 +- src/main/java/com/eukon05/dilanbot/music/MusicService.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 261104a..f779786 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.eukon05 dilanbot - 4.0.1 + 4.0.2 dilanbot dilanbot diff --git a/src/main/java/com/eukon05/dilanbot/music/MusicService.java b/src/main/java/com/eukon05/dilanbot/music/MusicService.java index 4ff75d6..3b2e8d6 100644 --- a/src/main/java/com/eukon05/dilanbot/music/MusicService.java +++ b/src/main/java/com/eukon05/dilanbot/music/MusicService.java @@ -69,6 +69,7 @@ Optional skip(ServerVoiceChannel channel) { AudioPlayer player = manager.getPlayer(); checkIsPlaying(player); + manager.getScheduler().clearLoopTrack(); manager.getScheduler().nextTrack(); return Optional.ofNullable(player.getPlayingTrack()); }