aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-23 15:13:24 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-23 15:13:24 -0400
commitfaf123fb068c294caa206d792b2a725ae1fd9139 (patch)
treed98d6d8c41c71dd0f421e82d183cff0b99097f21 /src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
parent853be8d4be7c181fea38af8527c99c7eef9b0654 (diff)
downloadnotenoughupdates-faf123fb068c294caa206d792b2a725ae1fd9139.tar.gz
notenoughupdates-faf123fb068c294caa206d792b2a725ae1fd9139.tar.bz2
notenoughupdates-faf123fb068c294caa206d792b2a725ae1fd9139.zip
feat: add auto updater for prereleases and allow changing the repo url
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
index cfab28e0..f6202cc3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java
@@ -90,7 +90,9 @@ import java.util.concurrent.atomic.AtomicInteger;
public class NotEnoughUpdates {
public static final String MODID = "notenoughupdates";
public static final String VERSION = "2.0.0-REL";
+ public static final String PRE_VERSION = "30.2";
public static final int VERSION_ID = 20000;
+ public static final int PRE_VERSION_ID = 3002;
public static NotEnoughUpdates INSTANCE = null;
@@ -952,7 +954,7 @@ public class NotEnoughUpdates {
} catch(Exception ignored) { }
}
- if(!config.hidden.dev) {
+ if(!NotEnoughUpdates.INSTANCE.config.hidden.dev) {
openGui = new GuiDungeonMapEditor();
return;
}