mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-28 12:25:58 +00:00
Fix crash when running on UNC (windows) network share.
See: https://bugs.openjdk.java.net/browse/JDK-8178726
This commit is contained in:
1 parent
f49c13481b
commit
21b9d4714f
1 file changed
+1
-1
@@ -99,7 +99,7 @@ public final class MainAttributes {
|
||||
}
|
||||
|
||||
if ("file".equals(codeSource.getScheme())) {
|
||||
File file = new File(codeSource);
|
||||
File file = Paths.get(codeSource).toFile();
|
||||
|
||||
if (file.isFile()) {
|
||||
Attributes attributes = MainAttributes.getJarAttributes(file);
|
||||
|
||||
Reference in new issue
Block a user