Отказ от buildnumber файла

This commit is contained in:
Gravit 2018-11-26 18:15:16 +07:00
parent 1e54e661f5
commit 1e35e89d1c
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -32,14 +32,6 @@ public final class Launcher {
// Used to determine from clientside is launched from launcher // Used to determine from clientside is launched from launcher
public static final AtomicBoolean LAUNCHED = new AtomicBoolean(false); public static final AtomicBoolean LAUNCHED = new AtomicBoolean(false);
static int readBuildNumber() {
try {
return Integer.valueOf(IOHelper.request(IOHelper.getResourceURL("buildnumber")));
} catch (IOException ignored) {
return 0; // Maybe dev env?
}
}
private static final AtomicReference<LauncherConfig> CONFIG = new AtomicReference<>(); private static final AtomicReference<LauncherConfig> CONFIG = new AtomicReference<>();
@LauncherAPI @LauncherAPI
public static ModulesManagerInterface modulesManager = null; public static ModulesManagerInterface modulesManager = null;
@ -67,7 +59,7 @@ static int readBuildNumber() {
public static int MAJOR = 4; public static int MAJOR = 4;
public static int MINOR = 0; public static int MINOR = 0;
public static int PATCH = 8; public static int PATCH = 8;
public static int BUILD = readBuildNumber(); public static int BUILD = 0;
public static Version.Type RELEASE = Version.Type.STABLE; public static Version.Type RELEASE = Version.Type.STABLE;
@LauncherAPI @LauncherAPI