Hydrogen compat fix (#154)

This commit is contained in:
paulevsGitch 2021-05-09 19:14:19 +03:00
parent 5d81d7b448
commit 38eaf8be67
6 changed files with 83 additions and 3 deletions

View file

@ -230,7 +230,7 @@ public class EndBiomes {
* @param server - {@link MinecraftServer}
*/
public static void initRegistry(MinecraftServer server) {
if (biomeRegistry == null) {
if (biomeRegistry == null || biomeRegistry == BuiltinRegistries.BIOME) {
biomeRegistry = server.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY);
}
}