Nitrogen atmosphere wouldn’t make any difference, it’s the charcoal that provides the initial oxygen content for the explosion.
Oh for crying out loud! Charcoal is composed of carbon. That is the fuel of the mixture. The oxygen comes from the potassium nitrate.