From e00d51e54b9c7303097ecd264412ed7b98f1f804 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Wed, 5 Apr 2023 04:07:11 +1000 Subject: Reset the api url if its empty (#672) kids keep deleting the api url --- .../java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/io') 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(); } -- cgit