Ensures that one can only paint pipes within range and that there is no blocking floor tile.
Adds a necessary check to ensure that pipes on top of plating can be painted.
Merge pull request #4748 from PsiOmegaDelta/PainterFix

Fixes #4547