From 92a5cfd1c4743b451ddeaec57f74da3aa6bec29c Mon Sep 17 00:00:00 2001 From: Maik Marschner Date: Sun, 6 Oct 2024 22:31:50 +0200 Subject: [PATCH] Fix scene files not being found in headless mode. (#1778) --- chunky/src/java/se/llbit/chunky/main/Chunky.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chunky/src/java/se/llbit/chunky/main/Chunky.java b/chunky/src/java/se/llbit/chunky/main/Chunky.java index 63de8da21..0f54f935c 100644 --- a/chunky/src/java/se/llbit/chunky/main/Chunky.java +++ b/chunky/src/java/se/llbit/chunky/main/Chunky.java @@ -165,7 +165,7 @@ public void close() { }); try { - sceneManager.loadScene(options.sceneDir, options.sceneName); + sceneManager.loadScene(options.getSceneDescriptionFile().getParentFile(), options.sceneName); if (options.target != -1) { sceneManager.getScene().setTargetSpp(options.target); }