Leaf piles may now be placed on anything solid. Closes #853

This commit is contained in:
Adubbz 2016-12-03 15:05:06 +11:00
parent 4ad4a82c94
commit 5791c6dcf2

View file

@ -382,6 +382,8 @@ public class BlockBOPPlant extends BlockBOPDecoration implements IShearable, IHo
case ROOT: case ROOT:
// roots hang down - check against block above // roots hang down - check against block above
return BlockQueries.fertile.matches(world, pos.up()); return BlockQueries.fertile.matches(world, pos.up());
case LEAFPILE: case DEADLEAFPILE:
return BlockQueries.solid.matches(world, pos.down());
default: default:
return BlockQueries.litFertile.matches(world, pos.down()); return BlockQueries.litFertile.matches(world, pos.down());
} }