Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
eb54dcec
Commit
eb54dcec
authored
May 20, 2022
by
zrll_
Committed by
Melledy
May 20, 2022
Browse files
Update FileUtils.java
fix: Error when checking files & always checking "/default/data" instead of folder
parent
92f1a93b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/utils/FileUtils.java
View file @
eb54dcec
...
@@ -97,7 +97,7 @@ public final class FileUtils {
...
@@ -97,7 +97,7 @@ public final class FileUtils {
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// Eclipse puts resources in its bin folder
// 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
)
{
if
(!
f
.
exists
()
||
f
.
listFiles
().
length
==
0
)
{
return
null
;
return
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment