idk if this fixes it

This commit is contained in:
ChomeNS 2022-11-01 18:10:45 +07:00
parent 40e7de42ed
commit 7c8b7c4cd4

View file

@ -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) {