3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Fix ambiguous newFileSystem method when using Java 13.

Dieser Commit ist enthalten in:
Seppe Volkaerts 2021-04-18 22:54:18 +02:00
Ursprung d26d61f038
Commit 6ac5643212

Datei anzeigen

@ -48,7 +48,7 @@ public class FileSystemUtils {
.getProtectionDomain().getCodeSource().getLocation().getPath()); .getProtectionDomain().getCodeSource().getLocation().getPath());
if (file.isFile()) { // jar if (file.isFile()) { // jar
try (FileSystem fileSystem = FileSystems.newFileSystem(file.toPath(), null)) { try (FileSystem fileSystem = FileSystems.newFileSystem(file.toPath(), (ClassLoader) null)) {
Path toVisit = fileSystem.getPath(path.toString()); Path toVisit = fileSystem.getPath(path.toString());
if (Files.exists(toVisit)) { if (Files.exists(toVisit)) {
consumer.accept(toVisit); consumer.accept(toVisit);