From 2a29dafe51ef7981e49f8d331e8a0441facc262b Mon Sep 17 00:00:00 2001 From: Asek3 <64613894+Asek3@users.noreply.github.com> Date: Tue, 12 Dec 2023 20:44:04 +0200 Subject: [PATCH] just because i can --- build.gradle | 8 +++++++- src/main/java/net/coderbot/iris/LaunchWarn.java | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 668f062264..68c26f5803 100644 --- a/build.gradle +++ b/build.gradle @@ -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 @@ -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 { diff --git a/src/main/java/net/coderbot/iris/LaunchWarn.java b/src/main/java/net/coderbot/iris/LaunchWarn.java index 4189c6e42f..b6298e6654 100644 --- a/src/main/java/net/coderbot/iris/LaunchWarn.java +++ b/src/main/java/net/coderbot/iris/LaunchWarn.java @@ -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 { @@ -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(); }