From b0ab0c68ad95ef86aae29f07867af7f484c82582 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Tue, 11 Apr 2023 23:11:23 -0400 Subject: [PATCH] Fix hanging on scene creation Invoke `SceneScriptManager#init` in a thread. --- src/main/java/emu/grasscutter/scripts/SceneScriptManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java b/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java index 555fb7ab1..c0668264c 100644 --- a/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java +++ b/src/main/java/emu/grasscutter/scripts/SceneScriptManager.java @@ -98,7 +98,7 @@ public class SceneScriptManager { } // Create - this.init(); + new Thread(this::init).start(); } public Scene getScene() {