}
if (tile instanceof IReconfigurableFacing) {
IReconfigurableFacing reconfig = (IReconfigurableFacing) tile;
int quadrant = MathHelper.floor(living.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;
if (reconfig.allowYAxisFacing()) {
quadrant = living.rotationPitch > 60 ? 4 : living.rotationPitch < -60 ? 5 : quadrant;
}
switch (quadrant) {
case 0:
reconfig.setFacing(2);