More biome config update

This commit is contained in:
Aleksey 2020-09-22 17:28:05 +03:00
parent 9eb993f154
commit 9e5372ee62
2 changed files with 12 additions and 0 deletions

View file

@ -64,4 +64,10 @@ public class ConfigWriter {
public static void save(File configFile, JsonElement config) { public static void save(File configFile, JsonElement config) {
JsonFactory.storeJson(configFile, config); JsonFactory.storeJson(configFile, config);
} }
static {
if (!MOD_CONFIG_DIR.exists()) {
MOD_CONFIG_DIR.mkdirs();
}
}
} }

View file

@ -41,4 +41,10 @@ public class BiomeConfig extends Config {
this.configKeeper.toJson(configWriter.getConfig()); this.configKeeper.toJson(configWriter.getConfig());
this.configWriter.saveConfig(); this.configWriter.saveConfig();
} }
static {
if (!BIOME_CONFIG_DIR.toFile().exists()) {
BIOME_CONFIG_DIR.toFile().mkdir();
}
}
} }