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

Fix localization loading from JAR

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-04-17 09:15:34 -04:00
Ursprung 6c369c7d09
Commit f2ddd391a5

Datei anzeigen

@ -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);