Biome API fix
This commit is contained in:
parent
1e20595ab5
commit
25fbadba6a
1 changed files with 6 additions and 2 deletions
|
@ -37,10 +37,14 @@ public class BiomeAPI {
|
||||||
*/
|
*/
|
||||||
public static void initRegistry(MinecraftServer server) {
|
public static void initRegistry(MinecraftServer server) {
|
||||||
biomeRegistry = server.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY);
|
biomeRegistry = server.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY);
|
||||||
|
CLIENT.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void registerBiomeDirectly(BCLBiome biome) {
|
public static void registerBiome(BCLBiome biome) {
|
||||||
Registry.register(BuiltinRegistries.BIOME, biome.getID(), biome.getBiome());
|
if (!BuiltinRegistries.BIOME.containsKey(biome.getID())) {
|
||||||
|
Registry.register(BuiltinRegistries.BIOME, biome.getID(), biome.getBiome());
|
||||||
|
}
|
||||||
|
ID_MAP.put(biome.getID(), biome);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue