First textures

This commit is contained in:
Aleksey 2020-09-23 17:34:11 +03:00
parent 6ec1a3711e
commit 2bc84f65a1
14 changed files with 14 additions and 4 deletions

View file

@ -20,7 +20,8 @@ public class BiomeConfig extends Config {
public BiomeConfig(EndBiome biome) {
this.biome = biome;
Identifier biomeId = biome.getID();
this.configFile = new File(BIOME_CONFIG_DIR.toFile(), biomeId.getPath());
String folder = ConfigWriter.scrubFileName(biomeId.toString());
this.configFile = new File(BIOME_CONFIG_DIR.toFile(), folder + ".json");
this.configWriter = new ConfigWriter();
this.registerEntries();
JsonObject config = configWriter.loadConfig(configFile);