Fix rubber sapling finding top most block of world to grow from. Fixes #782
This commit is contained in:
parent
603c12590d
commit
cff4878eb0
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ public class BlockRubberSapling extends BlockSapling {
|
|||
return;
|
||||
}
|
||||
worldIn.setBlockToAir(pos);
|
||||
if (!new RubberTreeGenerator(false).generate(worldIn, rand, pos)) {
|
||||
if (!new RubberTreeGenerator(false).growTree(worldIn, rand, pos.getX(), pos.getY(), pos.getZ())) {
|
||||
worldIn.setBlockState(pos, state); // Re-add the sapling if the tree
|
||||
// failed to grow
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue