Only remap jars when required
This commit is contained in:
		
							parent
							
								
									9ed5dd7a01
								
							
						
					
					
						commit
						10f134fcc2
					
				
					 1 changed files with 8 additions and 6 deletions
				
			
		|  | @ -54,13 +54,15 @@ public class MinecraftJarProvider { | |||
| 			mergeJars(project); | ||||
| 		} | ||||
| 
 | ||||
| 		if (getMappedJar().exists()) { | ||||
| 			getMappedJar().delete(); | ||||
| 		if(!getMappedJar().exists() || !getIntermediaryJar().exists()){ | ||||
| 			if (getMappedJar().exists()) { | ||||
| 				getMappedJar().delete(); | ||||
| 			} | ||||
| 			if (getIntermediaryJar().exists()) { | ||||
| 				getIntermediaryJar().delete(); | ||||
| 			} | ||||
| 			new MapJarsTiny().mapJars(this, project); | ||||
| 		} | ||||
| 		if (getIntermediaryJar().exists()) { | ||||
| 			getIntermediaryJar().delete(); | ||||
| 		} | ||||
| 		new MapJarsTiny().mapJars(this, project); | ||||
| 
 | ||||
| 		if (!MINECRAFT_MAPPED_JAR.exists()) { | ||||
| 			throw new RuntimeException("mapped jar not found"); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue