Handle new method of mappings
parent
65e2a76d70
commit
14574cf6a0
|
@ -74,7 +74,7 @@ public class DownloadTask extends DefaultTask {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getLogger().lifecycle(":downloading mappings");
|
this.getLogger().lifecycle(":downloading mappings");
|
||||||
FileUtils.copyURLToFile(new URL("https://github.com/FabricMC/pomf/archive/master.zip"), Constants.MAPPINGS_ZIP);
|
FileUtils.copyURLToFile(new URL("https://github.com/FabricMC/pomf/archive/" + extension.version + ".zip"), Constants.MAPPINGS_ZIP);
|
||||||
|
|
||||||
DependencyHandler dependencyHandler = getProject().getDependencies();
|
DependencyHandler dependencyHandler = getProject().getDependencies();
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class MapJarsTask extends DefaultTask {
|
||||||
|
|
||||||
this.getLogger().lifecycle(":remapping jar");
|
this.getLogger().lifecycle(":remapping jar");
|
||||||
deobfuscator = new Deobfuscator(new JarFile(Constants.MINECRAFT_MERGED_JAR.get(extension)));
|
deobfuscator = new Deobfuscator(new JarFile(Constants.MINECRAFT_MERGED_JAR.get(extension)));
|
||||||
this.deobfuscator.setMappings(new MappingsEnigmaReader().read(new File(Constants.MAPPINGS_DIR, "pomf-master" + File.separator + "mappings")));
|
this.deobfuscator.setMappings(new MappingsEnigmaReader().read(new File(Constants.MAPPINGS_DIR, "pomf-" + extension.version + File.separator + "mappings")));
|
||||||
this.deobfuscator.writeJar(Constants.MINECRAFT_MAPPED_JAR.get(extension), new ProgressListener());
|
this.deobfuscator.writeJar(Constants.MINECRAFT_MAPPED_JAR.get(extension), new ProgressListener());
|
||||||
|
|
||||||
File tempAssests = new File(Constants.CACHE_FILES, "tempAssets");
|
File tempAssests = new File(Constants.CACHE_FILES, "tempAssets");
|
||||||
|
|
Loading…
Reference in New Issue