Fixed missing caves in most biomes
This commit is contained in:
parent
ff3194fedf
commit
bed07d2ad7
3 changed files with 16 additions and 15 deletions
|
@ -5,14 +5,22 @@ import net.minecraft.world.level.biome.Biome;
|
|||
import ru.bclib.world.biomes.BCLBiome;
|
||||
import ru.bclib.world.biomes.BCLBiomeDef;
|
||||
import ru.betterend.config.Configs;
|
||||
import ru.betterend.registry.EndFeatures;
|
||||
|
||||
public class EndBiome extends BCLBiome {
|
||||
public EndBiome(BCLBiomeDef definition) {
|
||||
super(definition.loadConfigValues(Configs.BIOME_CONFIG));
|
||||
public EndBiome(BCLBiomeDef def) {
|
||||
super(updateDef(def));
|
||||
|
||||
}
|
||||
|
||||
public EndBiome(ResourceLocation id, Biome biome, float fogDensity, float genChance, boolean hasCaves) {
|
||||
super(id, biome, fogDensity, genChance);
|
||||
this.addCustomData("has_caves", hasCaves);
|
||||
}
|
||||
|
||||
private static BCLBiomeDef updateDef(BCLBiomeDef def) {
|
||||
def.loadConfigValues(Configs.BIOME_CONFIG);
|
||||
EndFeatures.addDefaultFeatures(def);
|
||||
return def;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue