Bug fix: Fabric 1.17+ crash at startup(fixes #304)

Microsoft account now set accountType to msa.
Minor change in custom control view controller.
This commit is contained in:
Duy Tran Khanh committed 2022-02-05 16:47:04 +07:00
1 parent d607cf346f
commit e5018cc094
4 files changed
+29 -17

No files matched your search

@@ -1,5 +1,6 @@
package net.kdt.pojavlaunch;
import java.io.File;
import java.net.*;
/**
@@ -16,5 +17,10 @@ public class PojavClassLoader extends URLClassLoader {
@Override
public void addURL(URL url) {
super.addURL(url);
try {
System.setProperty("java.class.path", System.getProperty("java.class.path") + ":" + new File(url.toURI()).getAbsolutePath());
} catch (URISyntaxException e) {
e.printStackTrace();
}
}
}