York man pleads not guilty to having meth while on probation