Merge branch 'main' into lang_de, working on further translations

This commit is contained in:
2022-04-19 11:30:41 +02:00
16 changed files with 103 additions and 104 deletions

View File

@@ -36,7 +36,7 @@ public class Configuration {
var newVals = (JSONObject) new JSONParser().parse(Files.readString(file.toPath()));
data.putAll(newVals);
} catch (ParseException | IOException e){
LOG.warn("Was not able to load configuration from {}:",file,e);
LOG.warn("Konnte Konfiguration nicht aus {} laden:",file,e);
}
return this;
}
@@ -47,7 +47,7 @@ public class Configuration {
}
public Configuration save() throws IOException {
if (file == null) throw new NullPointerException("Cannot save configuration: file is null!");
if (file == null) throw new NullPointerException("Konnte Konfiguration nicht speichern: Datei ist null!");
file.getParentFile().mkdirs();
Files.writeString(file.toPath(),data.toJSONString());
return this;