Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
- Fixed a bug when skipping a looping track would not disable the loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Eukon05 committed Oct 15, 2023
1 parent c25d826 commit 590525b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.eukon05</groupId>
<artifactId>dilanbot</artifactId>
<version>4.0.1</version>
<version>4.0.2</version>
<name>dilanbot</name>
<description>dilanbot</description>
<properties>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/eukon05/dilanbot/music/MusicService.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Optional<AudioTrack> skip(ServerVoiceChannel channel) {
AudioPlayer player = manager.getPlayer();
checkIsPlaying(player);

manager.getScheduler().clearLoopTrack();
manager.getScheduler().nextTrack();
return Optional.ofNullable(player.getPlayingTrack());
}
Expand Down

0 comments on commit 590525b

Please sign in to comment.