Judge sentences man to rider for meth