Small fix
This commit is contained in:
parent
4877de8fe8
commit
57d478a162
1 changed files with 10 additions and 6 deletions
|
@ -159,14 +159,18 @@ public class EndBiomes {
|
||||||
private static void loadFabricAPIBiomes() {
|
private static void loadFabricAPIBiomes() {
|
||||||
WeightedBiomePicker picker = InternalBiomeData.getEndBiomesMap().get(BiomeKeys.SMALL_END_ISLANDS);
|
WeightedBiomePicker picker = InternalBiomeData.getEndBiomesMap().get(BiomeKeys.SMALL_END_ISLANDS);
|
||||||
LayerRandomnessSource random = new BELayerRandomSource();
|
LayerRandomnessSource random = new BELayerRandomSource();
|
||||||
for (int i = 0; i < 1000; i++) {
|
if (picker != null) {
|
||||||
RegistryKey<Biome> key = picker.pickRandom(random);
|
for (int i = 0; i < 1000; i++) {
|
||||||
FABRIC_VOID.add(key.getValue());
|
RegistryKey<Biome> key = picker.pickRandom(random);
|
||||||
|
FABRIC_VOID.add(key.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
picker = InternalBiomeData.getEndBiomesMap().get(BiomeKeys.END_BARRENS);
|
picker = InternalBiomeData.getEndBiomesMap().get(BiomeKeys.END_BARRENS);
|
||||||
for (int i = 0; i < 1000; i++) {
|
if (picker != null) {
|
||||||
RegistryKey<Biome> key = picker.pickRandom(random);
|
for (int i = 0; i < 1000; i++) {
|
||||||
FABRIC_VOID.add(key.getValue());
|
RegistryKey<Biome> key = picker.pickRandom(random);
|
||||||
|
FABRIC_VOID.add(key.getValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (BetterEnd.isDevEnvironment()) {
|
if (BetterEnd.isDevEnvironment()) {
|
||||||
System.out.println("Added void biomes from Fabric API:");
|
System.out.println("Added void biomes from Fabric API:");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue