mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
parent
abc46da944
commit
d17b07d421
1 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,8 @@ export function convertLegacyReactions(reactions: Record<string, number>) {
|
||||||
const _reactions = {} as Record<string, number>;
|
const _reactions = {} as Record<string, number>;
|
||||||
|
|
||||||
for (const reaction of Object.keys(reactions)) {
|
for (const reaction of Object.keys(reactions)) {
|
||||||
|
if (reactions[reaction] <= 0) continue;
|
||||||
|
|
||||||
if (Object.keys(legacies).includes(reaction)) {
|
if (Object.keys(legacies).includes(reaction)) {
|
||||||
if (_reactions[legacies[reaction]]) {
|
if (_reactions[legacies[reaction]]) {
|
||||||
_reactions[legacies[reaction]] += reactions[reaction];
|
_reactions[legacies[reaction]] += reactions[reaction];
|
||||||
|
|
Loading…
Reference in a new issue