Skip to content

Commit

Permalink
Disable install MC jar check
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5734 committed Oct 17, 2024
1 parent feb3bee commit 13ebf1e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private static Map<String, Map.Entry<String, String>> fabricDeps(Path fabricLoad

@SuppressWarnings("unchecked")
private static CompletableFuture<Path>[] installFabric(InstallInfo info, ExecutorService pool, Consumer<String> logger) {
var minecraftData = MinecraftProvider.downloadMinecraftData(info, pool, logger);
//var minecraftData = MinecraftProvider.downloadMinecraftData(info, pool, logger);
String coord = String.format("net.fabricmc:fabric-loader:%s", info.installer.fabricLoader);
String dist = "libraries/" + Util.mavenToPath(coord);
var installerFuture = MinecraftProvider.reportSupply(pool, logger).apply(new MavenDownloader(Mirrors.getMavenRepo(), coord, dist, info.installer.fabricLoaderHash))
Expand All @@ -120,10 +120,11 @@ private static CompletableFuture<Path>[] installFabric(InstallInfo info, Executo
throw new RuntimeException(e);
}
});
/*
var serverFuture = minecraftData.thenCompose(data -> MinecraftProvider.reportSupply(pool, logger).apply(
new FileDownloader(String.format(data.serverUrl(), info.installer.minecraft),
String.format("libraries/net/minecraft/server/%1$s/server-%1$s.jar", info.installer.minecraft), data.serverHash())
));
return new CompletableFuture[]{installerFuture, serverFuture};
));*/
return new CompletableFuture[]{installerFuture};
}
}

0 comments on commit 13ebf1e

Please sign in to comment.