Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from maruohon/fix-intermediary-maven
Browse files Browse the repository at this point in the history
Fix the maven URL for the intermediary
  • Loading branch information
DeadlyMC authored Oct 6, 2021
2 parents 8cc131f + c986d47 commit 005ae72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/fabricmc/meta/web/ProfileHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ private static JsonObject buildProfileJson(LoaderInfoV2 info, String side) {
JsonObject librariesObject = launcherMeta.get("libraries").getAsJsonObject();
// Build the libraries array with the existing libs + loader and intermediary
JsonArray libraries = (JsonArray) librariesObject.get("common");
String maven = loader.equals("fabric-loader-1.8.9") ? LoaderMeta.LEGACY_MAVEN_URL : LoaderMeta.MAVEN_URL;
libraries.add(getLibrary(info.getIntermediary().getMaven(), maven));
libraries.add(getLibrary(info.getLoader().getMaven(), maven));
String loaderMaven = loader.equals("fabric-loader-1.8.9") ? LoaderMeta.LEGACY_MAVEN_URL : LoaderMeta.MAVEN_URL;
libraries.add(getLibrary(info.getIntermediary().getMaven(), LoaderMeta.LEGACY_MAVEN_URL));
libraries.add(getLibrary(info.getLoader().getMaven(), loaderMaven));

if (librariesObject.has(side)) {
libraries.addAll(librariesObject.get(side).getAsJsonArray());
Expand Down

0 comments on commit 005ae72

Please sign in to comment.