Small fixes

This commit is contained in:
paulevsGitch 2021-12-20 06:19:09 +03:00
parent 7549803896
commit 5e88bd3c92

View file

@ -83,16 +83,20 @@ public class BCLFeature {
* @return new BCLFeature instance. * @return new BCLFeature instance.
*/ */
public static BCLFeature makeVegetationFeature(ResourceLocation id, Feature<NoneFeatureConfiguration> feature, int density, boolean allHeight) { public static BCLFeature makeVegetationFeature(ResourceLocation id, Feature<NoneFeatureConfiguration> feature, int density, boolean allHeight) {
if (allHeight) {
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
PlacementModifier count = allHeight ? CountOnEveryLayerPlacement.of(8) : CountPlacement.of(UniformInt.of(0, density)); PlacementModifier count =CountOnEveryLayerPlacement.of(density);
return makeFeature(id, Decoration.VEGETAL_DECORATION, feature, count, BiomeFilter.biome());
}
else {
return makeFeature(id, Decoration.VEGETAL_DECORATION, feature, return makeFeature(id, Decoration.VEGETAL_DECORATION, feature,
count, CountPlacement.of(UniformInt.of(0, density)),
InSquarePlacement.spread(), InSquarePlacement.spread(),
PlacementUtils.HEIGHTMAP//, PlacementUtils.HEIGHTMAP,
// Will result with: Tried to biome check an unregistered feature BiomeFilter.biome()
// BiomeFilter.biome()
); );
} }
}
/** /**
* Will create a basic ore feature. * Will create a basic ore feature.