Skip to content

Commit

Permalink
fix: if the file is not found, it will be in the basic English language
Browse files Browse the repository at this point in the history
  • Loading branch information
AzaleeX committed Aug 28, 2024
1 parent 7df7bc7 commit ba638bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/sculk/Sculk.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public static void main(String[] args) {
private static Properties loadServerProperties() throws IOException {
File file = new File(DATA_PATH + "server.properties");
Properties properties = new Properties();
if (!file.exists()) {
properties.setProperty("language", "eng");
return properties;
}
try (FileInputStream input = new FileInputStream(file)) {
properties.load(input);
}
Expand Down

0 comments on commit ba638bf

Please sign in to comment.