This phase III trial studies how well radiation therapy with protons works compared with photons in treating patients with liver cancer. Radiation therapy, such as photon therapy, uses high energy x-rays to send the radiation inside the body to the tumor while proton therapy uses a beam of proton particles. Proton therapy can stop shortly after penetrating through the tumor and may cause less damage to the surrounding healthy organs and result in better survival in patients with liver cancer.