dont queue jukebox sounds when autoplay blocked

This commit is contained in:
dank074 2022-11-08 19:06:13 -06:00
parent 0462d08e15
commit 04460c3b8e

View File

@ -194,6 +194,13 @@ export class MusicPlayer
{
if(!this._currentSong || !this._sequence) return;
//@ts-ignore
if(!Howler._audioUnlocked)
{
//console.log('skipping due to locked audio');
return;
}
for(const sequencyEntry of this._sequence)
{
const entry = sequencyEntry[pos];