From 12a4225ed5641ca8f8b9117ae24c7a4e63f6556c Mon Sep 17 00:00:00 2001 From: Fealtous Date: Tue, 24 Mar 2026 21:29:53 -0400 Subject: [PATCH] Create only zip & pom for unobfuscated versions (26.1+) --- .../java/net/minecraftforge/mcmaven/impl/repo/Repo.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/minecraftforge/mcmaven/impl/repo/Repo.java b/src/main/java/net/minecraftforge/mcmaven/impl/repo/Repo.java index f3e3e8c..5f0594e 100644 --- a/src/main/java/net/minecraftforge/mcmaven/impl/repo/Repo.java +++ b/src/main/java/net/minecraftforge/mcmaven/impl/repo/Repo.java @@ -286,15 +286,12 @@ protected List mappingArtifacts(File cache, Mappings mappings, outputJson.put("mappings.version", mappings::version); } - // 26.1 has no mappings as they are not obfed, so just output the channel. - // In theory we need to add support for arbitrary mappings not just SRG. - // So i'll have to change this later, but we'll cross that bridge when we come to it. - if (!MCPConfigRepo.isObfuscated(side.getMCP().getMinecraftTasks().getVersion())) - return List.of(); - var coords = mappings.getArtifact(side); var csvs = pending("Mappings Zip", mappings.getCsvZip(side), coords, false); var pom = pending("Mappings POM", simplePom(cache, coords), coords.withExtension("pom"), false); + // Just create the zip and pom for unobfuscated versions. + if (!MCPConfigRepo.isObfuscated(side.getMCP().getMinecraftTasks().getVersion())) + return List.of(csvs, pom); var m2o = pending("Mappings map2obf", mappings.getMapped2Obf(side), coords.withClassifier("map2obf").withExtension("tsrg.gz"), false); var m2s = pending("Mappings map2srg", mappings.getMapped2Srg(side), coords.withClassifier("map2srg").withExtension("tsrg.gz"), false); if (outputJson != null) {