Merge branch 'main' into lang_de, working on further translations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user