Fix building on newer java versions

This commit is contained in:
modmuss50
2020-05-27 14:38:45 +01:00
parent 016645d315
commit 2645fef789
2 changed files with 5 additions and 5 deletions

View File

@@ -136,7 +136,7 @@ public class MigrateMappingsTask extends AbstractLoomTask {
private static TinyTree getMappings(File mappings) throws IOException {
Path temp = Files.createTempFile("mappings", ".tiny");
try (FileSystem fileSystem = FileSystems.newFileSystem(mappings.toPath(), null)) {
try (FileSystem fileSystem = FileSystems.newFileSystem(mappings.toPath(), (ClassLoader) null)) {
Files.copy(fileSystem.getPath("mappings/mappings.tiny"), temp, StandardCopyOption.REPLACE_EXISTING);
}