diff --git a/packages/sound/src/traits/audible.js b/packages/sound/src/traits/audible.js index b062c73..7dc913f 100644 --- a/packages/sound/src/traits/audible.js +++ b/packages/sound/src/traits/audible.js @@ -98,10 +98,12 @@ export default (latus) => class Audible extends Trait { playSound: (key) => { if (this.entity.hasSound(key)) { - Promise.resolve(this.#sounds[key]).then((sound) => { - sound.play(); - }); - if ('client' !== process.env.SIDE) { + if ('client' === process.env.SIDE) { + Promise.resolve(this.#sounds[key]).then((sound) => { + sound.play(); + }); + } + else { this.#playing[key] = true; this.markAsDirty(); }