diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2023-06-28 06:26:24 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 22:26:24 +0200 |
commit | 1873fa0d2f71ef06ba24c89e6ccb6eb85f525ef3 (patch) | |
tree | ba42503ba88545c70b1d7b9178322f81ada34114 /src | |
parent | e68e5847b798d17a4d651818a6e55fba45da8a4e (diff) | |
download | NotEnoughUpdates-1873fa0d2f71ef06ba24c89e6ccb6eb85f525ef3.tar.gz NotEnoughUpdates-1873fa0d2f71ef06ba24c89e6ccb6eb85f525ef3.tar.bz2 NotEnoughUpdates-1873fa0d2f71ef06ba24c89e6ccb6eb85f525ef3.zip |
fix bank balance and powder count in pv (#745)
* Added a command to set api key
* Fixed total powder count in pv
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java | 2 | ||||
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java index d08e96a3..8a994a17 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java @@ -192,7 +192,7 @@ public class ExtraPage extends GuiProfileViewerPage { float yStartBottom = 105; float yOffset = 10; - float bankBalance = Utils.getElementAsFloat(Utils.getElement(profileInfo, "banking.balance"), 0); + float bankBalance = Utils.getElementAsFloat(Utils.getElement(selectedProfile.getOuterProfileJson(), "banking.balance"), 0); float purseBalance = Utils.getElementAsFloat(Utils.getElement(profileInfo, "coin_purse"), 0); Utils.renderAlignedString( diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java index 84f0622b..c0824bf5 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/MiningPage.java @@ -87,11 +87,11 @@ public class MiningPage extends GuiProfileViewerPage { float mithrilPowder = Utils.getElementAsFloat(Utils.getElement(miningCore, "powder_mithril"), 0); float gemstonePowder = Utils.getElementAsFloat(Utils.getElement(miningCore, "powder_gemstone"), 0); float mithrilPowderTotal = Utils.getElementAsFloat(Utils.getElement( - profileInfo, + miningCore, "powder_spent_mithril" ), 0); float gemstonePowderTotal = Utils.getElementAsFloat(Utils.getElement( - profileInfo, + miningCore, "powder_spent_gemstone" ), 0); |