diff options
| author | jani270 <69345714+jani270@users.noreply.github.com> | 2023-12-26 10:26:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-26 10:26:23 +0100 |
| commit | 1d6937db0cfbf5db5a22b298615550dd41cf7ae6 (patch) | |
| tree | f3056f7e3afcd663c0936843f9da3434bb99767e /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java | |
| parent | ac96321d82fb8ee9ebc91ce9501ddcd7b649f47d (diff) | |
| download | notenoughupdates-1d6937db0cfbf5db5a22b298615550dd41cf7ae6.tar.gz notenoughupdates-1d6937db0cfbf5db5a22b298615550dd41cf7ae6.tar.bz2 notenoughupdates-1d6937db0cfbf5db5a22b298615550dd41cf7ae6.zip | |
Migrating pv to v2 endpoint (#939)
Co-authored-by: efefury <69400149+efefury@users.noreply.github.com>
Co-authored-by: Lulonaut <lulonaut@lulonaut.tech>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java index 809c5fb7..8309b9db 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java @@ -234,7 +234,7 @@ public class PlayerStats { public static Stats getPassiveBonuses(Map<String, ProfileViewer.Level> skyblockInfo, JsonObject profile) { Stats passiveBonuses = new Stats(); - Stats fairyBonus = getFairyBonus((int) Utils.getElementAsFloat(Utils.getElement(profile, "fairy_exchanges"), 0)); + Stats fairyBonus = getFairyBonus((int) Utils.getElementAsFloat(Utils.getElement(profile, "fairy_soul.fairy_exchanges"), 0)); Stats skillBonus = getSkillBonus(skyblockInfo); Stats petBonus = getTamingBonus(profile); @@ -691,9 +691,7 @@ public class PlayerStats { quiverInfo.arrows.putIfAbsent(internalName, count); } - if (profileInfo.has("favorite_arrow")) { - quiverInfo.selectedArrow = profileInfo.get("favorite_arrow").getAsString(); - } + quiverInfo.selectedArrow = Utils.getElementAsString(Utils.getElement(profileInfo, "item_data.favorite_arrow"), null); return quiverInfo; } |
