Skip to content

Commit d71a3c3

Browse files
committed
Download zipped version of quilt hashed mappings
1 parent c271e8c commit d71a3c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/dev/booky/stackdeobf/mappings/providers/QuiltMappingProvider.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ protected CompletableFuture<Void> downloadMappings0(Path cacheDir, Executor exec
6767
return future;
6868
}
6969

70-
URI hashedUri = HASHED_MAPPINGS_ARTIFACT.buildUri(CompatUtil.VERSION_ID, "tiny");
70+
URI hashedUri = HASHED_MAPPINGS_ARTIFACT.buildUri(CompatUtil.VERSION_ID, "jar");
7171
CompatUtil.LOGGER.info("Downloading hashed {} mappings for {}...", this.name, CompatUtil.VERSION_ID);
7272

73-
return future.thenCompose($ -> HttpUtil.getAsync(hashedUri, executor).thenAccept(mappingBytes -> {
73+
return future.thenCompose($ -> HttpUtil.getAsync(hashedUri, executor).thenAccept(jarBytes -> {
74+
byte[] mappingBytes = this.extractPackagedMappings(jarBytes);
7475
try (OutputStream fileOutput = Files.newOutputStream(this.hashedPath);
7576
GZIPOutputStream gzipOutput = new GZIPOutputStream(fileOutput)) {
7677
gzipOutput.write(mappingBytes);

0 commit comments

Comments
 (0)