From b60596f41f1f391b908c8f36fc92f75240491605 Mon Sep 17 00:00:00 2001 From: zrll_ <46812903+zrll12@users.noreply.github.com> Date: Fri, 20 May 2022 17:38:32 +0800 Subject: [PATCH] Update FileUtils.java fix: Error when checking files & always checking "/default/data" instead of folder --- src/main/java/emu/grasscutter/utils/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/utils/FileUtils.java b/src/main/java/emu/grasscutter/utils/FileUtils.java index 181168aea..61ed6b443 100644 --- a/src/main/java/emu/grasscutter/utils/FileUtils.java +++ b/src/main/java/emu/grasscutter/utils/FileUtils.java @@ -97,7 +97,7 @@ public final class FileUtils { } } catch (Exception e) { // Eclipse puts resources in its bin folder - File f = new File(jarPath + "defaults/data/"); + File f = new File(System.getProperty("user.dir") + folder); if (!f.exists() || f.listFiles().length == 0) { return null;