Confused about crop farm
I wanted a source of crop and I built this farm: https://puu.sh/IKt6g/2afd37790f.png
I'm confused, if I replace the glass block with a solid block, the piston on top breaks the crop. Why?
In case it's not visible from the picture, it's just 3 dispensers facing into the crop so it auto-grows.