Fixed carver leaking into other biomes

This commit is contained in:
paulevsGitch 2022-01-14 21:00:38 +03:00
parent f2fd7ab55b
commit b9307183d7
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,7 @@ loader_version= 0.12.12
fabric_version = 0.44.0+1.18
# Mod Properties
mod_version = 1.2.4
mod_version = 1.2.5
maven_group = ru.bclib
archives_base_name = bclib

View file

@ -519,9 +519,10 @@ public class BCLBiomeBuilder {
* @return same {@link BCLBiomeBuilder} instance.
*/
public BCLBiomeBuilder carver(GenerationStep.Carving step, ConfiguredWorldCarver<?> carver) {
final ResourceLocation immutableID = biomeID;
BuiltinRegistries.CONFIGURED_CARVER
.getResourceKey(carver)
.ifPresent(key -> BiomeModifications.addCarver(ctx -> ctx.getBiomeKey().location().equals(biomeID), step, key));
.ifPresent(key -> BiomeModifications.addCarver(ctx -> ctx.getBiomeKey().location().equals(immutableID), step, key));
return this;
}