This commit is contained in:
GregTCLTK 2020-01-07 16:41:13 +01:00
parent 8b855b2676
commit c82daf0fba
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67

View file

@ -52,7 +52,7 @@ public class TrackManager extends AudioEventAdapter {
this.lastTrack = track; this.lastTrack = track;
Guild g = queue.poll().getAuthor().getGuild(); Guild g = queue.poll().getAuthor().getGuild();
if (loop) { if (loop) {
player.playTrack(lastTrack.makeClone()); player.playTrack(this.lastTrack.makeClone());
} else if (queue.isEmpty()) { } else if (queue.isEmpty()) {
g.getAudioManager().closeAudioConnection(); g.getAudioManager().closeAudioConnection();
} else { } else {