From 3d4645c54cb8cc9b4be960e9921c5c7d0ac2477e Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Mon, 22 Apr 2024 21:19:31 +1000 Subject: Fix repository location being empty on boot (#1109) reset repository location if the repo data is empty --- .../java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | 6 ++++++ 1 file changed, 6 insertions(+) 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"; -- cgit