[Fix] Respect force_include.end_land_biomes
This commit is contained in:
parent
bd46ba7fb6
commit
47935ccdf5
1 changed files with 5 additions and 1 deletions
|
@ -93,6 +93,10 @@ public class BCLibEndBiomeSource extends BCLBiomeSource {
|
||||||
List<String> includeVoid = Configs.BIOMES_CONFIG.getEntry("force_include",
|
List<String> includeVoid = Configs.BIOMES_CONFIG.getEntry("force_include",
|
||||||
"end_void_biomes",
|
"end_void_biomes",
|
||||||
StringArrayEntry.class).getValue();
|
StringArrayEntry.class).getValue();
|
||||||
|
|
||||||
|
List<String> includeLand = Configs.BIOMES_CONFIG.getEntry("force_include",
|
||||||
|
"end_land_biomes",
|
||||||
|
StringArrayEntry.class).getValue();
|
||||||
this.possibleBiomes().forEach(biome -> {
|
this.possibleBiomes().forEach(biome -> {
|
||||||
ResourceLocation key = biome.unwrapKey().orElseThrow().location();
|
ResourceLocation key = biome.unwrapKey().orElseThrow().location();
|
||||||
String group = key.getNamespace() + "." + key.getPath();
|
String group = key.getNamespace() + "." + key.getPath();
|
||||||
|
@ -111,7 +115,7 @@ public class BCLibEndBiomeSource extends BCLBiomeSource {
|
||||||
if (bclBiome.getParentBiome() == null) {
|
if (bclBiome.getParentBiome() == null) {
|
||||||
if (BiomeAPI.wasRegisteredAsEndVoidBiome(key) || includeVoid.contains(key.toString())) {
|
if (BiomeAPI.wasRegisteredAsEndVoidBiome(key) || includeVoid.contains(key.toString())) {
|
||||||
endVoidBiomePicker.addBiome(bclBiome);
|
endVoidBiomePicker.addBiome(bclBiome);
|
||||||
} else if (BiomeAPI.wasRegisteredAsEndLandBiome(key)){
|
} else if (BiomeAPI.wasRegisteredAsEndLandBiome(key) || includeLand.contains(key.toString()) ){
|
||||||
endLandBiomePicker.addBiome(bclBiome);
|
endLandBiomePicker.addBiome(bclBiome);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue