File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
vanilla/src/installer/java/org/spongepowered/vanilla/installer Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 4747import java .io .IOException ;
4848import java .io .InputStream ;
4949import java .io .InputStreamReader ;
50- import java .io .UncheckedIOException ;
5150import java .net .URI ;
5251import java .net .URL ;
5352import java .net .URLConnection ;
@@ -116,18 +115,10 @@ private void downloadAndRun() throws Exception {
116115 final LibraryManager libraryManager = this .installer .getLibraryManager ();
117116 try {
118117 if (mcVersion != null ) {
119- final CompletableFuture <Path > mappingsFuture = this .downloadMappings (mcVersion );
120118 final CompletableFuture <Path > originalMcFuture = this .downloadMinecraft (mcVersion );
121119 final CompletableFuture <ServerAndLibraries > extractedFuture = originalMcFuture
122120 .thenApplyAsync (this ::extractBundle , libraryManager .preparationWorker ());
123- final CompletableFuture <ServerAndLibraries > remappedMinecraftJarFuture = mappingsFuture .thenCombineAsync (extractedFuture , (mappings , minecraft ) -> {
124- try {
125- return this .remapMinecraft (minecraft , mappings );
126- } catch (final IOException ex ) {
127- throw new UncheckedIOException (ex );
128- }
129- }, libraryManager .preparationWorker ());
130- remappedMinecraftJar = remappedMinecraftJarFuture .get ();
121+ remappedMinecraftJar = extractedFuture .get ();
131122 }
132123 } catch (final ExecutionException ex ) {
133124 final /* @Nullable */ Throwable cause = ex .getCause ();
You can’t perform that action at this time.
0 commit comments