Cleanup potentially corrupt files on mappings error

This commit is contained in:
modmuss50
2020-04-05 20:11:11 +01:00
parent e5a6551609
commit 75f08fc4c5
3 changed files with 23 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ public class CleanLoomMappings extends AbstractLoomTask {
extension.getMinecraftMappedProvider().getIntermediaryJar().delete();
extension.getMinecraftMappedProvider().getMappedJar().delete();
Files.walkFileTree(extension.getRootProjectBuildCache().toPath(), new DeletingFileVisitor());
getExtension().getMappingsProvider().cleanFiles();
} catch (IOException e) {
throw new RuntimeException(e);
}