aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-04-22 21:19:31 +1000
committerGitHub <noreply@github.com>2024-04-22 13:19:31 +0200
commit3d4645c54cb8cc9b4be960e9921c5c7d0ac2477e (patch)
treea0a53f71b5e8f87b796f2a5b0c820aac035eeab6
parente7aee64e8b64557f805208feeeac91d3ba684b8e (diff)
downloadNotEnoughUpdates-3d4645c54cb8cc9b4be960e9921c5c7d0ac2477e.tar.gz
NotEnoughUpdates-3d4645c54cb8cc9b4be960e9921c5c7d0ac2477e.tar.bz2
NotEnoughUpdates-3d4645c54cb8cc9b4be960e9921c5c7d0ac2477e.zip
Fix repository location being empty on boot (#1109)
reset repository location if the repo data is empty
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
index b129e644..38270c77 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
@@ -253,6 +253,12 @@ public class NotEnoughUpdates {
config.profileViewer.pageLayout.add(12);
}
+ if ((config.apiData.repoUser.isEmpty() || config.apiData.repoName.isEmpty() || config.apiData.repoBranch.isEmpty()) && config.apiData.autoupdate_new) {
+ config.apiData.repoUser = "NotEnoughUpdates";
+ config.apiData.repoName = "NotEnoughUpdates-REPO";
+ config.apiData.repoBranch = "master";
+ }
+
// Remove after 2.1 ig
if ("dangerous".equals(config.apiData.repoBranch)) {
config.apiData.repoBranch = "prerelease";