From f2ddd391a5eff865b800c7bc4685fe92dc771327 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sat, 17 Apr 2021 09:15:34 -0400 Subject: [PATCH] Fix localization loading from JAR --- .../java/com/velocitypowered/proxy/util/FileSystemUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java b/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java index b623481c5..167ee47b0 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/FileSystemUtils.java @@ -48,8 +48,7 @@ public class FileSystemUtils { .getProtectionDomain().getCodeSource().getLocation().getPath()); if (file.isFile()) { // jar - URI uri = file.toURI(); - try (FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.emptyMap())) { + try (FileSystem fileSystem = FileSystems.newFileSystem(file.toPath(), null)) { Path toVisit = fileSystem.getPath(path.toString()); if (Files.exists(toVisit)) { consumer.accept(toVisit);