Flying planes directly above each other seems like a pretty bad idea anyway given that the ATC screens are 2D
The article mentions the Embraer's TCAS alerted them of the problem, for example. Even my dad's little four seater prop plane will call out "traffic, twelve o'clock, three miles" sort of notices, and if the traffic gets too close it can additionally order climb/descent to avoid.