aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-11-07 20:11:03 +0000
committerGitHub <noreply@github.com>2022-11-07 21:11:03 +0100
commit3075fb0e8438a9ab701ddbef0eba75064b475f6f (patch)
treedddbe9e8e6c8d6d103b36d4e0042c7369ffd9ed2 /src/main/java
parent4237145a5ba0cf28c2d14b8f369ec95ffff9bbff (diff)
downloadNotEnoughUpdates-3075fb0e8438a9ab701ddbef0eba75064b475f6f.tar.gz
NotEnoughUpdates-3075fb0e8438a9ab701ddbef0eba75064b475f6f.tar.bz2
NotEnoughUpdates-3075fb0e8438a9ab701ddbef0eba75064b475f6f.zip
add null check instead of spamming logs every frame (#430)
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
index e5c17a1a..97db29cf 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
@@ -275,7 +275,8 @@ public class BasicPage extends GuiProfileViewerPage {
true,
0
);
- try {
+ if (NotEnoughUpdates.INSTANCE.manager.auctionManager.getBazaarInfo("BOOSTER_COOKIE") != null &&
+ NotEnoughUpdates.INSTANCE.manager.auctionManager.getBazaarInfo("BOOSTER_COOKIE").has("avg_buy")) {
double networthInCookies =
(
networth /
@@ -334,8 +335,6 @@ public class BasicPage extends GuiProfileViewerPage {
}
}
}
- } catch (Exception ignored) {
- ignored.printStackTrace();
}
} else {
//Networth is under 0