mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
idk if this fixes it
This commit is contained in:
parent
40e7de42ed
commit
7c8b7c4cd4
1 changed files with 5 additions and 3 deletions
|
@ -57,14 +57,16 @@ function inject(bot) {
|
|||
return;
|
||||
}
|
||||
bot.music.queue.shift();
|
||||
if (!bot.music.queue[0]) return;
|
||||
if (!bot.music.queue[0]) {
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: 'Finished playing every song in the queue'}));
|
||||
bot.music.stop();
|
||||
return;
|
||||
}
|
||||
if (bot.music.queue[0].notes.length > 0) {
|
||||
if (bot.music.queue.length !== 1) resetTime();
|
||||
bot.music.play(bot.music.queue[0]);
|
||||
return;
|
||||
}
|
||||
bot.core.run('minecraft:tellraw @a ' + JSON.stringify({text: 'Finished playing every song in the queue'}));
|
||||
bot.music.stop();
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue