Skip to content

Commit

Permalink
Update playlistSoundEmitter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
makidoll committed Dec 2, 2018
1 parent 71e1329 commit 73e8f73
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions playlistSoundEmitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@
sounds = shuffle(sounds);

function playSound(soundObject) {
console.log(_this.active)
if (!_this.active) return;
console.log("playing")
_this.currentInjector = Audio.playSound(soundObject, {
position: entity.position,
volume: userData.volume,
Expand Down Expand Up @@ -83,4 +81,4 @@
if (this.currentInjector.playing)
this.currentInjector.stop();
}
})
})

0 comments on commit 73e8f73

Please sign in to comment.