use project root dir, should fix files being all over the place

This commit is contained in:
modmuss50
2018-12-10 14:28:58 +00:00
parent da675e9545
commit f8bcf214f8
8 changed files with 16 additions and 15 deletions

View File

@@ -53,6 +53,14 @@ public class LoomGradleExtension {
return userCache;
}
public File getProjectCache(){
File projectCache = new File(project.getRootDir(), ".gradle/minecraft/");
if(!projectCache.exists()){
projectCache.mkdirs();
}
return projectCache;
}
public LoomDependencyManager getDependencyManager() {
return dependencyManager;
}