Biome API fix

This commit is contained in:
paulevsGitch 2021-06-07 11:29:30 +03:00
parent 1e20595ab5
commit 25fbadba6a

View file

@ -37,11 +37,15 @@ public class BiomeAPI {
*/
public static void initRegistry(MinecraftServer server) {
biomeRegistry = server.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY);
CLIENT.clear();
}
public static void registerBiomeDirectly(BCLBiome biome) {
public static void registerBiome(BCLBiome biome) {
if (!BuiltinRegistries.BIOME.containsKey(biome.getID())) {
Registry.register(BuiltinRegistries.BIOME, biome.getID(), biome.getBiome());
}
ID_MAP.put(biome.getID(), biome);
}
/**
* Adds {@link BCLBiome} to FabricAPI biomes as the Nether biome (with random {@link ClimateParameters}).