Skip to content

Commit f2ff102

Browse files
committed
Pass in mappings to mavenizer when not on 'official'
1 parent cb8b262 commit f2ff102

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/net/minecraftforge/gradle/internal/MinecraftExtensionImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ public MavenizerInstance dependency(
433433
var mappings = minecraftDependency.getMappings();
434434
if ("parchment".equals(mappings.getChannel()))
435435
ret.addAll(List.of("--parchment", mappings.getVersion()));
436+
else if (!"official".equals(mappings.getChannel()))
437+
ret.addAll(List.of("--mappings", mappings.getChannel() + ':' + mappings.getVersion()));
436438

437439
for (var repo : this.getRepositories()) {
438440
if (MAVENIZER_REPO_NAME.equals(repo.getName()))

0 commit comments

Comments
 (0)