In first conditional sentences (real possibilities in the future), we use the present simple tense in the if-clause, not 'will'. The pattern is: If + present simple, ... will + verb. 'Doesn't' is the present simple form of 'do not' for third person singular.