diff --git a/web/emotewall/index.js b/web/emotewall/index.js index 639f188..ef21ff5 100644 --- a/web/emotewall/index.js +++ b/web/emotewall/index.js @@ -359,16 +359,17 @@ $(async function () { return; console.log(message.eventType, message.data) + let emote = handleEmoteData(message.data) if(message.eventType == 'bounce') { - createParticule(BounceP, handleEmoteData(message.data), {}, {}) + createParticule(BounceP, emote, {}, {}) }else if(message.eventType == 'rain') { - genRain(handleEmoteData(message.data)) + genRain(emote) }else if(message.eventType == 'firework') { - genFirework(handleEmoteData(message.data)) + genFirework(emote) }else if(message.eventType == 'volcano') { - genVolcano(handleEmoteData(message.data)) + genVolcano(emote) }else if(message.eventType == 'bomb') { - createParticule(BombP, handleEmoteData(message.data), {}, {}) + createParticule(BombP, emote, {}, {}) }else if(message.eventType == 'explosion') { //genExplosion(message.data) }else {