mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
music loop fix rel
This commit is contained in:
parent
ecaf7900e6
commit
149fe83dc0
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,12 @@ function inject(bot) {
|
|||
startTime = 0;
|
||||
noteIndex = 0;
|
||||
bot.music.skip = function() {
|
||||
bot.music.queue.shift();
|
||||
if (bot.music.loop === 2) {
|
||||
bot.music.queue.push(bot.music.queue.shift());
|
||||
bot.music.play(bot.music.queue[0]);
|
||||
} else {
|
||||
bot.music.queue.shift();
|
||||
}
|
||||
resetTime();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue