Skip to content

Commit

Permalink
1.09_16
Browse files Browse the repository at this point in the history
  • Loading branch information
Moresteck committed Aug 13, 2022
1 parent eb73e8f commit 8bb3065
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/betacraft/launcher/BC.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public class BC {
public static PropertyFile SETTINGS;

// TODO better check this before release
public static boolean prerelease = true;
public static boolean prerelease = false;
public static boolean nightly = false;

public static boolean portable = true;
public static boolean portable = false;
public static boolean wrapped = false;

public static String get() {
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/org/betacraft/launcher/Launcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

/** Main class */
public class Launcher {
public static String VERSION = "1.09_16-pre1"; // TODO Always update this
public static String VERSION = "1.09_16"; // TODO Always update this

public static Instance currentInstance;
public static boolean forceUpdate = false;
Expand Down Expand Up @@ -860,12 +860,12 @@ public static void downloadUpdate(boolean release) {
if (!update.startsWith("!")) {
// Present update options
Object[] options = new Object[] {Lang.YES, Lang.NO, Lang.MANUAL_DOWNLOAD};
Object result = JOptionPane.showOptionDialog(Window.mainWindow, rr, Lang.OPTIONS_UPDATE_HEADER, JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, options[0]);
int result = JOptionPane.showOptionDialog(Window.mainWindow, rr, Lang.OPTIONS_UPDATE_HEADER, JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, options[0]);

if (result == options[0]) {
if (result == 0) {
System.out.println("The user wants to update to: " + update_name);
yes = true;
} else if (result == options[1]) {
} else if (result == 1) {
System.out.println("The user doesn't want to update. The launcher stays at version: " + VERSION);
} else {
// openURL may not work on macOS or some linux distros...
Expand Down

0 comments on commit 8bb3065

Please sign in to comment.