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
c0acf8b1
Commit
c0acf8b1
authored
May 03, 2022
by
mzfqy
Committed by
Melledy
May 03, 2022
Browse files
fix path
parent
70507c34
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/Grasscutter.java
View file @
c0acf8b1
...
@@ -151,7 +151,7 @@ public final class Grasscutter {
...
@@ -151,7 +151,7 @@ public final class Grasscutter {
saveConfig
();
saveConfig
();
try
{
try
{
File
folder
=
new
File
(
"./language"
);
File
folder
=
new
File
(
"./language
s
"
);
if
(!
folder
.
exists
()
&&
!
folder
.
isDirectory
())
{
if
(!
folder
.
exists
()
&&
!
folder
.
isDirectory
())
{
//noinspection ResultOfMethodCallIgnored
//noinspection ResultOfMethodCallIgnored
folder
.
mkdirs
();
folder
.
mkdirs
();
...
@@ -159,7 +159,7 @@ public final class Grasscutter {
...
@@ -159,7 +159,7 @@ public final class Grasscutter {
}
catch
(
Exception
ee
)
{
}
catch
(
Exception
ee
)
{
Grasscutter
.
getLogger
().
error
(
"Unable to create language folder."
);
Grasscutter
.
getLogger
().
error
(
"Unable to create language folder."
);
}
}
try
(
FileWriter
file
=
new
FileWriter
(
"./language/en_us.json"
))
{
try
(
FileWriter
file
=
new
FileWriter
(
"./language
s
/en_us.json"
))
{
file
.
write
(
gson
.
toJson
(
language
));
file
.
write
(
gson
.
toJson
(
language
));
}
catch
(
Exception
ee
)
{
}
catch
(
Exception
ee
)
{
Grasscutter
.
getLogger
().
error
(
"Unable to create language file."
);
Grasscutter
.
getLogger
().
error
(
"Unable to create language file."
);
...
...
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