Biome registry init changes

This commit is contained in:
paulevsGitch 2021-12-03 14:26:12 +03:00
parent db07cd1887
commit 14451494ff
7 changed files with 26 additions and 4 deletions

View file

@ -86,8 +86,8 @@ public class BiomeAPI {
*
* @param server - {@link MinecraftServer}
*/
public static void initRegistry(MinecraftServer server) {
biomeRegistry = server.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY);
public static void initRegistry( Registry<Biome> biomeRegistry) {
BiomeAPI.biomeRegistry = biomeRegistry;
CLIENT.clear();
}