Correct double AutoFlow

This commit is contained in:
Sebastien 2018-03-05 15:14:58 +01:00
parent 270f52321b
commit ba876df45e

View File

@ -62,7 +62,9 @@ public class TrackScheduler extends AudioEventAdapter {
else{ else{
currentPlayingTrack = track; currentPlayingTrack = track;
} }
if(track.getSubmittedUser() != MainBot.jda.getSelfUser()) {
needAutoPlay(); needAutoPlay();
}
} }
@ -87,8 +89,10 @@ public class TrackScheduler extends AudioEventAdapter {
else{ else{
currentPlayingTrack = track; currentPlayingTrack = track;
} }
if(track.getSubmittedUser() != MainBot.jda.getSelfUser()) {
needAutoPlay(); needAutoPlay();
} }
}
public void pause() { public void pause() {
player.setPaused(true); player.setPaused(true);