Optimized line drawing for horizontal and vertical lines, brought chunk painting more in line with other code.