Fixed issue with refactored BCLBiome

This commit is contained in:
Frank 2022-12-06 16:28:23 +01:00
parent 8b7c4bf9b1
commit 4a30629782

View file

@ -225,7 +225,7 @@ public class BCLBiome implements BiomeData {
* @param defaults The Settings for this Biome or null if you want to apply the defaults * @param defaults The Settings for this Biome or null if you want to apply the defaults
*/ */
protected BCLBiome(ResourceKey<Biome> biomeKey, BCLBiomeSettings defaults) { protected BCLBiome(ResourceKey<Biome> biomeKey, BCLBiomeSettings defaults) {
this.settings = defaults; this.settings = defaults == null ? new BCLBiomeSettings() : defaults;
this.biomeID = biomeKey.location(); this.biomeID = biomeKey.location();
this.biomeKey = biomeKey; this.biomeKey = biomeKey;
} }
@ -237,7 +237,7 @@ public class BCLBiome implements BiomeData {
* @param defaults The Settings for this Biome or null if you want to apply the defaults * @param defaults The Settings for this Biome or null if you want to apply the defaults
*/ */
protected BCLBiome(ResourceLocation biomeID, BCLBiomeSettings defaults) { protected BCLBiome(ResourceLocation biomeID, BCLBiomeSettings defaults) {
this.settings = defaults; this.settings = defaults == null ? new BCLBiomeSettings() : defaults;
this.biomeID = biomeID; this.biomeID = biomeID;
this.biomeKey = ResourceKey.create(Registries.BIOME, biomeID); this.biomeKey = ResourceKey.create(Registries.BIOME, biomeID);
} }