Registry client side fix

This commit is contained in:
paulevsGitch 2021-06-20 18:27:19 +03:00
parent 425458f0bd
commit e536edfccf
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ yarn_mappings=6
loader_version=0.11.3
# Mod Properties
mod_version = 0.1.40
mod_version = 0.1.41
maven_group = ru.bclib
archives_base_name = bclib

View file

@ -41,7 +41,7 @@ public class BiomeAPI {
}
public static void registerBiome(BCLBiome biome) {
if (!BuiltinRegistries.BIOME.containsKey(biome.getID())) {
if (BuiltinRegistries.BIOME.get(biome.getID()) == null) {
Registry.register(BuiltinRegistries.BIOME, biome.getID(), biome.getBiome());
}
ID_MAP.put(biome.getID(), biome);