From c5321b89b84cc772857893fd4ef16580bcba44af Mon Sep 17 00:00:00 2001 From: StavZDev Date: Mon, 5 Apr 2021 17:59:26 +0500 Subject: [PATCH] jacob always 0 --- src/structures/SkyBlock/SkyblockMember.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/structures/SkyBlock/SkyblockMember.js b/src/structures/SkyBlock/SkyblockMember.js index 0334662e..962526c3 100644 --- a/src/structures/SkyBlock/SkyblockMember.js +++ b/src/structures/SkyBlock/SkyblockMember.js @@ -257,7 +257,7 @@ function getDungeons (data) { * @return {jacobData} */ function getJacobData (data) { - if (!data.jacob2) { + if (!data.m.jacob2) { return { medals: { bronze: 0, @@ -272,13 +272,13 @@ function getJacobData (data) { }; } return { - medals: data.jacob2.medals_inv ? - { bronze: data.jacob2.medals_inv.bronze || 0, silver: data.jacob2.medals_inv.silver || 0, gold: data.jacob2.medals_inv.gold || 0 } : + medals: data.m.jacob2.medals_inv ? + { bronze: data.m.jacob2.medals_inv.bronze || 0, silver: data.m.jacob2.medals_inv.silver || 0, gold: data.m.jacob2.medals_inv.gold || 0 } : { bronze: 0, silver: 0, gold: 0 }, - perks: data.jacob2.perks ? - { doubleDrops: data.jacob2.perks.doubleDrops || 0, farmingLevelCap: data.jacob2.perks.farmingLevelCap || 0 } : + perks: data.m.jacob2.perks ? + { doubleDrops: data.m.jacob2.perks.doubleDrops || 0, farmingLevelCap: data.m.jacob2.perks.farmingLevelCap || 0 } : { doubleDrops: 0, farmingLevelCap: 0 }, - contests: data.jacob2.contests || {} + contests: data.m.jacob2.contests || {} }; } /**