Small name changes
This commit is contained in:
parent
95ff7ad429
commit
fe21c57883
2 changed files with 9 additions and 9 deletions
|
@ -104,10 +104,10 @@ public class EndBiomes {
|
|||
boolean hasCaves = true;
|
||||
JsonElement element = config.get(id.getPath());
|
||||
if (element != null && element.isJsonObject()) {
|
||||
fog = JsonFactory.getFloat(element.getAsJsonObject(), "fogDensity", 1);
|
||||
chance = JsonFactory.getFloat(element.getAsJsonObject(), "genChance", 1);
|
||||
fog = JsonFactory.getFloat(element.getAsJsonObject(), "fog_density", 1);
|
||||
chance = JsonFactory.getFloat(element.getAsJsonObject(), "generation_chance", 1);
|
||||
isVoid = JsonFactory.getString(element.getAsJsonObject(), "type", "land").equals("void");
|
||||
hasCaves = JsonFactory.getBoolean(element.getAsJsonObject(), "hasCaves", true);
|
||||
hasCaves = JsonFactory.getBoolean(element.getAsJsonObject(), "has_caves", true);
|
||||
}
|
||||
EndBiome endBiome = new EndBiome(id, biome, fog, chance, hasCaves);
|
||||
if (Configs.BIOME_CONFIG.getBoolean(endBiome, "enabled", true)) {
|
||||
|
|
|
@ -40,18 +40,18 @@ public class EndBiome {
|
|||
public EndBiome(BiomeDefinition definition) {
|
||||
biome = definition.build();
|
||||
mcID = definition.getID();
|
||||
fogDensity = Configs.BIOME_CONFIG.getFloat(this, "fogDensity", definition.getFodDensity());
|
||||
genChanceUnmutable = Configs.BIOME_CONFIG.getFloat(this, "generationChance", definition.getGenChance());
|
||||
hasCaves = Configs.BIOME_CONFIG.getBoolean(this, "hasCaves", definition.hasCaves());
|
||||
fogDensity = Configs.BIOME_CONFIG.getFloat(this, "fog_density", definition.getFodDensity());
|
||||
genChanceUnmutable = Configs.BIOME_CONFIG.getFloat(this, "generation_chance", definition.getGenChance());
|
||||
hasCaves = Configs.BIOME_CONFIG.getBoolean(this, "has_caves", definition.hasCaves());
|
||||
readStructureList();
|
||||
}
|
||||
|
||||
public EndBiome(Identifier id, Biome biome, float fogDensity, float genChance, boolean hasCaves) {
|
||||
this.biome = biome;
|
||||
this.mcID = id;
|
||||
this.fogDensity = Configs.BIOME_CONFIG.getFloat(this, "fogDensity", fogDensity);
|
||||
this.genChanceUnmutable = Configs.BIOME_CONFIG.getFloat(this, "generationChance", genChance);
|
||||
this.hasCaves = Configs.BIOME_CONFIG.getBoolean(this, "hasCaves", hasCaves);
|
||||
this.fogDensity = Configs.BIOME_CONFIG.getFloat(this, "fog_density", fogDensity);
|
||||
this.genChanceUnmutable = Configs.BIOME_CONFIG.getFloat(this, "generation_chance", genChance);
|
||||
this.hasCaves = Configs.BIOME_CONFIG.getBoolean(this, "has_caves", hasCaves);
|
||||
readStructureList();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue