Skip to content

Commit

Permalink
Override version manifest and intermediary url by default
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatcore committed Jul 10, 2024
1 parent 7f20aa2 commit 43bc886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/main/java/babric/BabricLoomPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ private void applyProject(Project project) {

libraryProcessors.add((platform, libraryContext) -> new GambacLibraryProcessor(platform, libraryContext, extension, project, babricExtension));

extension.getVersionsManifests().add("https://babric.github.io/manifest-polyfill/version_manifest_v2.json", -10);

extension.setIntermediateMappingsProvider(BabricIntermediaryProvider.class, provider -> {
provider.getIntermediaryUrl().set(extension.getIntermediaryUrl());
provider.getIntermediaryUrl().set("https://maven.glass-launcher.net/babric/babric/intermediary/%1$s/intermediary-%1$s-v2.jar");
provider.getRefreshDeps().set(project.provider(() -> LoomGradleExtension.get(project).refreshDeps()));
});

Expand Down
5 changes: 0 additions & 5 deletions test-mod/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ base {
archivesName = project.archives_base_name
}

loom {
customMinecraftManifest.set("https://babric.github.io/manifest-polyfill/${project.minecraft_version}.json")
intermediaryUrl.set("https://maven.glass-launcher.net/babric/babric/intermediary/%1\$s/intermediary-%1\$s-v2.jar")
}

babric {
// disableM1Fixes.set(true) // Uncomment this to disable gambac (M1 colours fix.)
}
Expand Down

0 comments on commit 43bc886

Please sign in to comment.