Skip to content

Commit

Permalink
Remove duplicate mapping gathering
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
Ambre Bertucci committed Apr 16, 2023
1 parent 434e193 commit 48d78a4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/java/org/quiltmc/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public Boolean build() {
CompletableFuture.allOf(
this.populateHashedMojmapAndGame(executor),
this.populateIntermediaryAndGame(executor),
CompletableFuture.runAsync(this::populateMappings, executor),
CompletableFuture.runAsync(this::populateQuiltMappings, executor),
CompletableFuture.runAsync(this::populateInstaller, executor),
CompletableFuture.runAsync(this.populateLoader(executor), executor)
Expand Down Expand Up @@ -143,18 +142,6 @@ public Boolean build() {
}
}

private void populateMappings() {
try {
JsonArray mappings = toJson(this.maven.getMetadata(Constants.GROUP, "quilt-mappings"),
version -> new JsonPrimitive(stripInfo(version.version)));
this.arrays.put("mappings", mappings);

} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Failed to get mappings");
}
}

private void populateQuiltMappings() {
Collection<String> gameVersions = new LinkedHashSet<>();
JsonArray qm = new JsonArray();
Expand Down

0 comments on commit 48d78a4

Please sign in to comment.