mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 12:12:54 +08:00
fix path
This commit is contained in:
parent
70507c34c9
commit
c0acf8b1ba
@ -151,7 +151,7 @@ public final class Grasscutter {
|
|||||||
saveConfig();
|
saveConfig();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
File folder = new File("./language");
|
File folder = new File("./languages");
|
||||||
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 {
|
|||||||
} 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("./languages/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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user