Name mappings, so I can work with multiple Minecraft versions at the same time (#26)

* Name mappings, so I can work with multiple Minecraft versions at the same time

* Update MojangMappingsDependency.java

* Update MojangMappingsDependency.java

Co-authored-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
KosmX
2021-06-13 12:13:46 +02:00
committed by GitHub
parent 29822d0911
commit 90c55b66f7

View File

@@ -128,12 +128,14 @@ public class MojangMappingsDependency extends AbstractModuleDependency implement
@Override
public Set<File> resolve() {
Path mappingsDir;
try {
mappingsDir = extension.getMappingsProvider().getMappedVersionedDir(String.format("mojang/%s.%s-%s", GROUP, MODULE, getVersion()));
} catch (IOException e) {
throw new UncheckedIOException(e);
}
Path mappingsFile = mappingsDir.resolve("mappings.tiny");
Path mappingsFile = mappingsDir.resolve(String.format("mojmap-mappings-%s.jar", getVersion()));
Path clientMappings = mappingsDir.resolve("client.map");
Path serverMappings = mappingsDir.resolve("server.map");