Small fixes
This commit is contained in:
parent
7549803896
commit
5e88bd3c92
1 changed files with 13 additions and 9 deletions
|
@ -83,16 +83,20 @@ public class BCLFeature {
|
|||
* @return new BCLFeature instance.
|
||||
*/
|
||||
public static BCLFeature makeVegetationFeature(ResourceLocation id, Feature<NoneFeatureConfiguration> feature, int density, boolean allHeight) {
|
||||
if (allHeight) {
|
||||
@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,
|
||||
count,
|
||||
CountPlacement.of(UniformInt.of(0, density)),
|
||||
InSquarePlacement.spread(),
|
||||
PlacementUtils.HEIGHTMAP//,
|
||||
// Will result with: Tried to biome check an unregistered feature
|
||||
// BiomeFilter.biome()
|
||||
PlacementUtils.HEIGHTMAP,
|
||||
BiomeFilter.biome()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Will create a basic ore feature.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue