changed to vec3, modified check_block_dir method