Fixed set_block and get_block getting the wrong blocks because of a bug in calculate_block_from_coord