1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Fix animated modifier emotes

This commit is contained in:
Lordmau5 2021-12-11 22:01:47 +01:00
parent c0f7747428
commit 5e2d02b09e

View file

@ -1460,12 +1460,14 @@ export const AddonEmotes = {
// Is this emote a modifier? // Is this emote a modifier?
if ( emote.modifier && last_token && last_token.modifiers && (!text.length || (text.length === 1 && text[0] === '')) ) { if ( emote.modifier && last_token && last_token.modifiers && (!text.length || (text.length === 1 && text[0] === '')) ) {
if ( last_token.modifiers.indexOf(emote.token) === -1 ) { if ( last_token.modifiers.indexOf(emote.token) === -1 ) {
if ( big ) last_token.modifiers.push(
last_token.modifiers.push(Object.assign({ Object.assign({
big big,
}, emote.token)); anim
else },
last_token.modifiers.push(emote.token); emote.token
)
);
} }
continue; continue;