1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-07 14:50:56 +00:00

Update change-log. Fix a bug with cheer stacking when the standard cheers aren't available.

This commit is contained in:
SirStendec 2018-03-25 22:16:16 -04:00
parent b44740744b
commit 8dbcf434cd
2 changed files with 11 additions and 2 deletions

View file

@ -393,8 +393,11 @@ export const CheerEmotes = {
});
if ( collect ) {
const pref = collect === 2 ? 'cheer' : prefix,
group = collected[pref] = collected[pref] || {total: 0, individuals: []};
let pref = collect === 2 ? 'cheer' : prefix;
if ( ! actions[pref] )
pref = prefix;
const group = collected[pref] = collected[pref] || {total: 0, individuals: []};
group.total += amount;
group.individuals.push([amount, tier, prefix]);