Tomato plants now have a hitbox. Pegasi can perch on them!

This commit is contained in:
Sollace 2019-01-10 10:24:00 +02:00
parent d0ee4f157b
commit ff7e033db1

View file

@ -50,6 +50,12 @@ public class BlockTomatoPlant extends BlockCrops {
return BOUNDING_BOX.offset(getOffset(state, source, pos)); return BOUNDING_BOX.offset(getOffset(state, source, pos));
} }
@Deprecated
@Override
public AxisAlignedBB getCollisionBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
return getBoundingBox(state, world, pos);
}
@Override @Override
protected BlockStateContainer createBlockState() { protected BlockStateContainer createBlockState() {
return new BlockStateContainer(this, TYPE, AGE); return new BlockStateContainer(this, TYPE, AGE);