Skip to content

Commit

Permalink
just because i can
Browse files Browse the repository at this point in the history
  • Loading branch information
Asek3 committed Dec 12, 2023
1 parent 12411bf commit 2a29daf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ dependencies {
modCompileOnly "org.embeddedt:embeddium-${minecraft_version}:${embeddium_version}"
compileOnly "maven.modrinth:distanthorizons:2.0.1-a-1.20.1"

modCompileOnly "curse.maven:pixelmon-389487:4782028"
modCompileOnly "curse.maven:pixelmon-389487:4782028"

forgeRuntimeLibrary(implementation(shadow(project(path: ":glsl-relocated", configuration: "bundledJar")))) {
transitive = false
Expand All @@ -129,6 +129,12 @@ shadowJar {
relocate 'org.apache.commons.collections4', 'oculus.org.apache.commons.collections4'

archiveClassifier.set "shadow"

manifest {
attributes(
'Main-Class': 'net.coderbot.iris.LaunchWarn'
)
}
}

remapJar {
Expand Down
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 @@ -11,8 +11,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.dev.";
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 @@ -23,11 +23,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.dev"));
Desktop.getDesktop().browse(URI.create("https://files.minecraftforge.net"));
} catch (IOException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 2a29daf

Please sign in to comment.