Handle new method of mappings
This commit is contained in:
		
							parent
							
								
									65e2a76d70
								
							
						
					
					
						commit
						14574cf6a0
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -74,7 +74,7 @@ public class DownloadTask extends DefaultTask { | |||
| 			} | ||||
| 
 | ||||
| 			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(); | ||||
| 
 | ||||
|  |  | |||
|  | @ -53,7 +53,7 @@ public class MapJarsTask extends DefaultTask { | |||
| 
 | ||||
| 		this.getLogger().lifecycle(":remapping jar"); | ||||
| 		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()); | ||||
| 
 | ||||
| 		File tempAssests = new File(Constants.CACHE_FILES, "tempAssets"); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue