mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user