Small fixes
This commit is contained in:
parent
7549803896
commit
5e88bd3c92
1 changed files with 13 additions and 9 deletions
|
@ -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()
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue