We perform large-scale simulations of a two-dimensional lattice model for amorphous plasticity with random local yield stresses and long-range quadrupolar elastic interactions. We show that as the external stress increases towards the yielding phase transition, the scaling behavior of the avalanches crosses over from mean-field theory to a different universality class. This behavior is associated with strain localization, which significantly depends on the short-range properties of the interaction kernel.