Fix hanging on scene creation

Invoke `SceneScriptManager#init` in a thread.
This commit is contained in:
KingRainbow44 2023-04-11 23:11:23 -04:00
parent 7bac95098a
commit b0ab0c68ad
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -98,7 +98,7 @@ public class SceneScriptManager {
} }
// Create // Create
this.init(); new Thread(this::init).start();
} }
public Scene getScene() { public Scene getScene() {