Format some code

This commit is contained in:
Shevchik 2014-03-07 20:34:53 +04:00
parent 0473d1c7dd
commit 82dd666ef7

View File

@ -192,19 +192,24 @@ public class TrySitEventListener implements Listener {
// Rotate the player's view to the descending side of the block.
if (plugin.autoRotate && stairs != null) {
switch (stairs.getDescendingDirection()) {
case NORTH:
plocation.setYaw(180);
break;
case EAST:
plocation.setYaw(-90);
break;
case SOUTH:
plocation.setYaw(0);
break;
case WEST:
plocation.setYaw(90);
default:
;
case NORTH: {
plocation.setYaw(180);
break;
}
case EAST: {
plocation.setYaw(-90);
break;
}
case SOUTH: {
plocation.setYaw(0);
break;
}
case WEST: {
plocation.setYaw(90);
break;
}
default: {
}
}
} else {
plocation.setYaw(playerYaw);