More biome config update
This commit is contained in:
parent
9eb993f154
commit
9e5372ee62
2 changed files with 12 additions and 0 deletions
|
@ -64,4 +64,10 @@ public class ConfigWriter {
|
|||
public static void save(File configFile, JsonElement config) {
|
||||
JsonFactory.storeJson(configFile, config);
|
||||
}
|
||||
|
||||
static {
|
||||
if (!MOD_CONFIG_DIR.exists()) {
|
||||
MOD_CONFIG_DIR.mkdirs();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,4 +41,10 @@ public class BiomeConfig extends Config {
|
|||
this.configKeeper.toJson(configWriter.getConfig());
|
||||
this.configWriter.saveConfig();
|
||||
}
|
||||
|
||||
static {
|
||||
if (!BIOME_CONFIG_DIR.toFile().exists()) {
|
||||
BIOME_CONFIG_DIR.toFile().mkdir();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue