Move the color setting out of the loop and only render if the block is not air.