Skip to content

Commit 434b818

Browse files
committed
change loader variable
1 parent 63663fe commit 434b818

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/net/hypercubemc/iris_installer/Installer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public void start() {
213213
String loaderName = useCustomLoader ? "iris-fabric-loader" : "fabric-loader";
214214

215215
try {
216-
URL url = new URL("https://raw.githubusercontent.com/IrisShaders/Iris-Installer-Maven/master/latest-loader");
217-
String loaderVersion = useCustomLoader ? Utils.readTextFile(url) : Main.LOADER_META.getLatestVersion(false).getVersion();
216+
URL loaderVersionUrl = new URL("https://raw.githubusercontent.com/IrisShaders/Iris-Installer-Maven/master/latest-loader");
217+
String loaderVersion = useCustomLoader ? Utils.readTextFile(loaderVersionUrl) : Main.LOADER_META.getLatestVersion(false).getVersion();
218218
VanillaLauncherIntegration.installToLauncher(getVanillaGameDir(), getInstallDir(), useCustomLoader ? selectedEditionDisplayName : "Fabric Loader " + selectedVersion, selectedVersion, loaderName, loaderVersion, useCustomLoader ? VanillaLauncherIntegration.Icon.IRIS : VanillaLauncherIntegration.Icon.FABRIC);
219219
} catch (IOException e) {
220220
System.out.println("Failed to install version and profile to vanilla launcher!");

0 commit comments

Comments
 (0)