Small fixes

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

View file

@ -83,15 +83,19 @@ 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) {
@SuppressWarnings("deprecation") if (allHeight) {
PlacementModifier count = allHeight ? CountOnEveryLayerPlacement.of(8) : CountPlacement.of(UniformInt.of(0, density)); @SuppressWarnings("deprecation")
return makeFeature(id, Decoration.VEGETAL_DECORATION, feature, PlacementModifier count =CountOnEveryLayerPlacement.of(density);
count, return makeFeature(id, Decoration.VEGETAL_DECORATION, feature, count, BiomeFilter.biome());
InSquarePlacement.spread(), }
PlacementUtils.HEIGHTMAP//, else {
// Will result with: Tried to biome check an unregistered feature return makeFeature(id, Decoration.VEGETAL_DECORATION, feature,
// BiomeFilter.biome() CountPlacement.of(UniformInt.of(0, density)),
); InSquarePlacement.spread(),
PlacementUtils.HEIGHTMAP,
BiomeFilter.biome()
);
}
} }
/** /**