Biome API fix
This commit is contained in:
parent
1e20595ab5
commit
25fbadba6a
1 changed files with 6 additions and 2 deletions
|
@ -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}).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue