Merge branch 'main' of github.com:paulevsGitch/BCLib

This commit is contained in:
Frank Bauer 2021-07-20 00:44:49 +02:00
commit 65b70f57ad
134 changed files with 3347 additions and 1210 deletions

View file

@ -19,7 +19,10 @@ public class ConfigWriter {
}
public ConfigWriter(String modID, String configFile, File configFolder) {
this.configFile = new File((configFolder == null ? GAME_CONFIG_DIR.resolve(modID).toFile() : new File(configFolder, modID)), configFile + ".json");
this.configFile = new File((configFolder == null ? GAME_CONFIG_DIR.resolve(modID).toFile() : new File(
configFolder,
modID
)), configFile + ".json");
File parent = this.configFile.getParentFile();
if (!parent.exists()) {
parent.mkdirs();