Well what happens is the light will shine through the glass block because it is transparent but if you drew out where the light shines into the glass block and where it comes out from it then you will notice that the light has moved a little to the right or left and this is called refraction
The light is refracted. Which means the angle of incidence and the angle of reflection are different.