remapped mods need to persist after a clean to allow "clean build" to work
This commit is contained in:
		
							parent
							
								
									07ab36a97d
								
							
						
					
					
						commit
						9a33598608
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		|  | @ -93,6 +93,14 @@ public class LoomGradleExtension { | |||
| 		return userCache; | ||||
| 	} | ||||
| 
 | ||||
| 	public File getRootProjectPersistentCache() { | ||||
| 		File projectCache = new File(project.file(".gradle"), "loom-cache"); | ||||
| 		if(!projectCache.exists()){ | ||||
| 			projectCache.mkdirs(); | ||||
| 		} | ||||
| 		return projectCache; | ||||
| 	} | ||||
| 
 | ||||
| 	public File getRootProjectBuildCache() { | ||||
| 		File projectCache = new File(project.getRootProject().getBuildDir(), "loom-cache"); | ||||
| 		if(!projectCache.exists()){ | ||||
|  | @ -110,7 +118,7 @@ public class LoomGradleExtension { | |||
| 	} | ||||
| 
 | ||||
| 	public File getRemappedModCache() { | ||||
| 		File remappedModCache = new File(getRootProjectBuildCache(), "remapped_mods"); | ||||
| 		File remappedModCache = new File(getRootProjectPersistentCache(), "remapped_mods"); | ||||
| 		if (!remappedModCache.exists()) { | ||||
| 			remappedModCache.mkdir(); | ||||
| 		} | ||||
|  | @ -118,7 +126,7 @@ public class LoomGradleExtension { | |||
| 	} | ||||
| 
 | ||||
| 	public File getNestedModCache() { | ||||
| 		File nestedModCache = new File(getRootProjectBuildCache(), "nested_mods"); | ||||
| 		File nestedModCache = new File(getRootProjectPersistentCache(), "nested_mods"); | ||||
| 		if (!nestedModCache.exists()) { | ||||
| 			nestedModCache.mkdir(); | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue