Fixed line of sight code

Found an issue with how the blocks calculated whether or not they could
see the sky, so I re-wrote that code.