aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2022-08-20 09:21:21 +1000
committerGitHub <noreply@github.com>2022-08-20 09:21:21 +1000
commit445d0c69f3eb384aba032e3cf0e379bb53ea61df (patch)
tree77bc5c7ebb1af4a2fb090e5f251e95d5d6ff3b0f /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
parentb2d35428ac089ac104a2ea8212d8332c27a6cbee (diff)
downloadnotenoughupdates-445d0c69f3eb384aba032e3cf0e379bb53ea61df.tar.gz
notenoughupdates-445d0c69f3eb384aba032e3cf0e379bb53ea61df.tar.bz2
notenoughupdates-445d0c69f3eb384aba032e3cf0e379bb53ea61df.zip
Make be level show without island selected (#228)
Co-authored-by: jani270 <jani270@gmx.de>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
index 7869225d..e7ada16f 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/updater/AutoUpdater.java
@@ -179,8 +179,8 @@ public class AutoUpdater {
public void displayUpdateMessageIfOutOfDate() {
File repo = neu.manager.repoLocation;
- if (repo.exists()) {
- File updateJson = new File(repo, "update.json");
+ File updateJson = new File(repo, "update.json");
+ if (updateJson.exists()) {
try {
JsonObject o = neu.manager.getJsonFromFile(updateJson);