fix URI handling for mixins on windows in dev

This commit is contained in:
FalsePattern committed 2025-01-08 21:46:12 +01:00
1 parent c011a96d0a
commit 9bb03be64c
1 file changed
+6 -6
@@ -74,10 +74,10 @@ public interface IMixinPlugin extends IMixinConfigPlugin {
File found = null;
for (URL url : Launch.classLoader.getURLs()) {
try {
String file = url.getFile();
Path path = Paths.get(file);
val file = new File(url.toURI());
Path path = file.toPath();
if (mod.isMatchingJar(path)) {
found = path.toFile();
found = file;
break;
}
} catch (Exception ignored) {
@@ -102,10 +102,10 @@ public interface IMixinPlugin extends IMixinConfigPlugin {
}
for (URL url : Launch.classLoader.getURLs()) {
try {
String file = url.getFile();
Path path = Paths.get(file);
val file = new File(url.toURI());
Path path = file.toPath();
if (mod.isMatchingJar(path)) {
results.add(path.toFile());
results.add(file);
break;
}
} catch (Exception ignored) {