Hastings man sentenced for meth distribution