mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-23 13:37:42 +00:00
Update FileUtils.java
fix: Error when checking files & always checking "/default/data" instead of folder
This commit is contained in:
parent
e2cb56ee28
commit
b60596f41f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user