aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-10-28 19:57:43 +1100
committerGitHub <noreply@github.com>2023-10-28 10:57:43 +0200
commitaf965ca7b13f5220d97565ee1829043d659a665f (patch)
tree64436475a867d61b1e398082b23eaa6eb1c81b5d /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
parentf849c11c4d6fe713ef64d29e4a81c45b219c6c12 (diff)
downloadnotenoughupdates-af965ca7b13f5220d97565ee1829043d659a665f.tar.gz
notenoughupdates-af965ca7b13f5220d97565ee1829043d659a665f.tar.bz2
notenoughupdates-af965ca7b13f5220d97565ee1829043d659a665f.zip
Added logging to repo error popup (#904)
Made the repo error log what file is missing
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java4
1 files changed, 2 insertions, 2 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 7db8a21c..7b21e6a1 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
@@ -729,7 +729,7 @@ public class BasicPage extends GuiProfileViewerPage {
if (Weight.SLAYER_NAMES.contains(slayerNameLower)) {
JsonObject slayerToTier = Constants.LEVELING.getAsJsonObject("slayer_to_highest_tier");
if (slayerToTier == null) {
- Utils.showOutdatedRepoNotification();
+ Utils.showOutdatedRepoNotification("leveling.json");
return;
}
@@ -827,7 +827,7 @@ public class BasicPage extends GuiProfileViewerPage {
if (Constants.WEIGHT == null || Utils.getElement(Constants.WEIGHT, "lily.skills.overall") == null ||
!Utils.getElement(Constants.WEIGHT, "lily.skills.overall").isJsonPrimitive()) {
- Utils.showOutdatedRepoNotification();
+ Utils.showOutdatedRepoNotification("weight.json");
return;
}