[Fix] Pillar Features can not grow with BoneMeal

This commit is contained in:
Frank 2022-08-01 22:51:42 +02:00
parent 9623935b55
commit 62c36dc3ea

View file

@ -25,8 +25,9 @@ public class PillarFeature extends Feature<PillarFeatureConfig> {
int maxHeight = config.maxHeight.sample(rnd);
int minHeight = config.minHeight.sample(rnd);
BlockPos.MutableBlockPos posnow = featurePlaceContext.origin().mutable();
posnow.move(config.direction);
for (height = 0; height < maxHeight; ++height) {
for (height = 1; height < maxHeight; ++height) {
if (!config.allowedPlacement.test(level, posnow)) {
maxHeight = height;
break;