Small fix

This commit is contained in:
paulevsGitch 2020-12-13 22:53:17 +03:00
parent 4877de8fe8
commit 57d478a162

View file

@ -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:");