Merge branch 'master' of https://github.com/paulevsGitch/BetterEnd.git
This commit is contained in:
commit
bdc8978c86
2 changed files with 12 additions and 0 deletions
|
@ -63,4 +63,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