Try to fix no ctx

This commit is contained in:
Duy Tran Khanh committed 2021-01-06 06:01:40 +07:00
1 parent 62fde952c2
commit 69fecb15c7
2 files changed
+6 -2

No files matched your search

@@ -14,7 +14,7 @@ import net.kdt.pojavlaunch.value.*;
public class PLaunchApp {
public static JMinecraftVersionList mVersionList;
public static void main(String[] args) throws Throwable {
System.setProperty("os.name", "iOS");
// System.setProperty("os.name", "iOS");
System.setProperty("javafx.verbose", "true");
System.setProperty("javafx.platform", "ios");
System.setProperty("glass.platform", "ios");
@@ -38,6 +38,7 @@ public class PLaunchApp {
}
public static void applicationDidFinishLaunching() {
/*
Thread launchThread = new Thread() {
@Override
public void run() {
@@ -46,6 +47,9 @@ public class PLaunchApp {
};
launchThread.setDaemon(true);
launchThread.start();
*/
launchMinecrart();
}
public static void launchMinecraft() {
@@ -14,7 +14,7 @@ public class PLaunchJFXApp extends Application {
Circle circ = new Circle(40, 40, 30);
Group root = new Group(circ);
Scene scene = new Scene(root, 400, 300);
stage.setTitle("My JavaFX Application");
stage.setTitle("JavaFX Application");
stage.setScene(scene);
stage.show();
*/