Skip to content

Commit a173f69

Browse files
author
Dalton Pelc
committed
Updated to use the SNAPSHOT version of LauncherCore
Signed-off-by: Dalton Pelc <[email protected]>
1 parent a7b8017 commit a173f69

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<dependency>
4444
<groupId>net.technicpack</groupId>
4545
<artifactId>launchercore</artifactId>
46-
<version>1.0.0</version>
46+
<version>1.0.0-SNAPSHOT</version>
4747
<scope>compile</scope>
4848
</dependency>
4949
<dependency>

src/main/java/org/spoutcraft/launcher/Launcher.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
import net.technicpack.launchercore.util.Utils;
3636
import org.spoutcraft.launcher.skin.LauncherFrame;
3737

38+
import javax.swing.JOptionPane;
3839
import java.util.logging.ConsoleHandler;
3940
import java.util.logging.Level;
4041

@@ -73,7 +74,12 @@ public Launcher() {
7374

7475
launcherFrame.updateFaces();
7576
// launcherFrame.getNews().loadArticles();
76-
System.out.println(installedPacks);
77+
78+
JOptionPane.showMessageDialog(launcherFrame, "Warning! This is an early beta of a complete back-end rewrite.\n" +
79+
"Your mod installs may be corrupted or worse.\n" +
80+
"Use at your own risk.\n\n" +
81+
"Known issue: Yogbox and Hack/Mine DO NOT WORK.",
82+
"Warning! Beta Build of Launcher!", JOptionPane.WARNING_MESSAGE);
7783
}
7884

7985
private void loadDefaultPacks() {

src/main/java/org/spoutcraft/launcher/skin/options/LauncherOptions.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public void actionPerformed(ActionEvent e) {
158158
group.add(beta);
159159

160160
buildStream = Settings.getBuildStream();
161-
if (buildStream.equals("stable")) {
161+
if (buildStream.equals(Settings.STABLE)) {
162162
stable.setSelected(true);
163-
} else if (buildStream.equals("beta")) {
163+
} else if (buildStream.equals(Settings.BETA)) {
164164
beta.setSelected(true);
165165
}
166166

@@ -351,11 +351,11 @@ public void action(String action, JComponent c) {
351351
directoryChanged = true;
352352
}
353353
} else if (action.equals(BETA_ACTION)) {
354-
buildStream = "beta";
354+
buildStream = Settings.BETA;
355355
build.setText(LAUNCHER_PREPEND + getLatestLauncherBuild(buildStream));
356356
streamChanged = true;
357357
} else if (action.equals(STABLE_ACTION)) {
358-
buildStream = "stable";
358+
buildStream = Settings.STABLE;
359359
build.setText(LAUNCHER_PREPEND + getLatestLauncherBuild(buildStream));
360360
streamChanged = true;
361361
}

0 commit comments

Comments
 (0)