[Fix] Pillar Features can not grow with BoneMeal
This commit is contained in:
parent
9623935b55
commit
62c36dc3ea
1 changed files with 2 additions and 1 deletions
|
@ -25,8 +25,9 @@ public class PillarFeature extends Feature<PillarFeatureConfig> {
|
||||||
int maxHeight = config.maxHeight.sample(rnd);
|
int maxHeight = config.maxHeight.sample(rnd);
|
||||||
int minHeight = config.minHeight.sample(rnd);
|
int minHeight = config.minHeight.sample(rnd);
|
||||||
BlockPos.MutableBlockPos posnow = featurePlaceContext.origin().mutable();
|
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)) {
|
if (!config.allowedPlacement.test(level, posnow)) {
|
||||||
maxHeight = height;
|
maxHeight = height;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue