aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2023-04-05 04:07:11 +1000
committerGitHub <noreply@github.com>2023-04-04 20:07:11 +0200
commite00d51e54b9c7303097ecd264412ed7b98f1f804 (patch)
tree076d65522a1dcbfe8088857e5475c03f220fe186 /src/main/java/io
parentbbb1e2065d9428e6d981470eec0e5f2e2ed80713 (diff)
downloadNotEnoughUpdates-e00d51e54b9c7303097ecd264412ed7b98f1f804.tar.gz
NotEnoughUpdates-e00d51e54b9c7303097ecd264412ed7b98f1f804.tar.bz2
NotEnoughUpdates-e00d51e54b9c7303097ecd264412ed7b98f1f804.zip
Reset the api url if its empty (#672)
kids keep deleting the api url
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java4
1 files changed, 4 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 530d9eed..14f75fb0 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
@@ -252,6 +252,10 @@ public class NotEnoughUpdates {
config.apiData.repoBranch = "prerelease";
}
+ if (config.apiData.moulberryCodesApi.isEmpty()) {
+ config.apiData.moulberryCodesApi = "moulberry.codes";
+ }
+
saveConfig();
}