Hastings resident sentenced on drug charge