Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
Merge pull request #472 from Cybermaxke/2.x/fix-filesystem-compile-error
Fix ambiguous newFileSystem method when using Java 13.
Dieser Commit ist enthalten in:
Commit
01336ff239
@ -48,7 +48,7 @@ public class FileSystemUtils {
|
||||
.getProtectionDomain().getCodeSource().getLocation().getPath());
|
||||
|
||||
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());
|
||||
if (Files.exists(toVisit)) {
|
||||
consumer.accept(toVisit);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren