Changed how facing is calculated to fit in with vanilla