If you're using closed-cell foam, when you put pressure in the pilot it will compress the foam and when the piston opens it will slam in to the already compressed foam. The bumper could still work fine but the energy the piston would exert on the foam to compress it will have been loss as the foam is already compressed.
You need to use open-cell foam so that the pressure can equalise on all sides and not compress it.
Show us your pneumatic spud gun! Discuss pneumatic (compressed gas) powered potato guns and related accessories. Valve types, actuation, pipe, materials, fittings, compressors, safety, gas choices, and more.