Some polishing for Rubber Tree feature
This commit is contained in:
parent
889e576683
commit
5c6b268dcb
1 changed files with 5 additions and 5 deletions
|
@ -75,19 +75,19 @@ public class RubberTreeFeature extends AbstractTreeFeature<NoFeatureConfig> {
|
||||||
radius = 2;
|
radius = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BlockPos.MutableBlockPos blockpos$mutableblockpos = new BlockPos.MutableBlockPos();
|
||||||
for (xOffset = baseX - radius; xOffset <= baseX + radius; ++xOffset) {
|
for (xOffset = baseX - radius; xOffset <= baseX + radius; ++xOffset) {
|
||||||
for (zOffset = baseZ - radius; zOffset <= baseZ + radius; ++zOffset) {
|
for (zOffset = baseZ - radius; zOffset <= baseZ + radius; ++zOffset) {
|
||||||
//TODO: Change to mutable
|
if (!this.canGrowInto(worldIn, blockpos$mutableblockpos.setPos(xOffset, yOffset, xOffset))) {
|
||||||
BlockPos pos = new BlockPos(xOffset, yOffset, zOffset);
|
|
||||||
Block block = worldIn.getBlockState(pos).getBlock();
|
|
||||||
|
|
||||||
if (block != null && !this.canGrowInto(worldIn, pos)) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ok, we are cleared for take off!
|
||||||
|
// TODO: Grow tree after log blockstate fix
|
||||||
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue