Dangerous heat hits York, rest of state