Skip to content

Commit

Permalink
Ported LaunchWarn changes from 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Asek3 committed Mar 19, 2024
1 parent 9356b70 commit 7b84f0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/net/coderbot/iris/LaunchWarn.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
public class LaunchWarn {
public static void main(String[] args) {
// TODO: make this translatable
String message = "This file is the Fabric version of Iris, meant to be installed as a mod. Would you like to get the Iris Installer instead?";
String fallback = "This file is the Fabric version of Iris, meant to be installed as a mod. Please download the Iris Installer from https://irisshaders.net.";
String message = "This file is the Forge version of Oculus, meant to be installed as a mod. Would you like to get the Forge Installer instead?";
String fallback = "This file is the Forge version of Oculus, meant to be installed as a mod. Please download the Forge Installer from https://files.minecraftforge.net";
if (GraphicsEnvironment.isHeadless()) {
System.err.println(fallback);
} else {
Expand All @@ -24,11 +24,11 @@ public static void main(String[] args) {
}

if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
int option = JOptionPane.showOptionDialog(null, message, "Iris Installer", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, null, null);
int option = JOptionPane.showOptionDialog(null, message, "Oculus Installer", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, null, null);

if (option == JOptionPane.YES_OPTION) {
try {
Desktop.getDesktop().browse(URI.create("https://irisshaders.net"));
Desktop.getDesktop().browse(URI.create("https://files.minecraftforge.net"));
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 7b84f0d

Please sign in to comment.