Some music stuff :(
This commit is contained in:
parent
c13e5249d1
commit
13155d68fb
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ public class TrackManager extends AudioEventAdapter {
|
|||
|
||||
@Override
|
||||
public void onTrackEnd(AudioPlayer player, AudioTrack track, AudioTrackEndReason endReason) {
|
||||
Guild g = queue.element().getAuthor().getGuild();
|
||||
Guild g = queue.poll().getAuthor().getGuild();
|
||||
if (loop) {
|
||||
player.playTrack(track.makeClone());
|
||||
} else if (queue.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue