Format some code
This commit is contained in:
parent
0473d1c7dd
commit
82dd666ef7
@ -192,19 +192,24 @@ public class TrySitEventListener implements Listener {
|
|||||||
// Rotate the player's view to the descending side of the block.
|
// Rotate the player's view to the descending side of the block.
|
||||||
if (plugin.autoRotate && stairs != null) {
|
if (plugin.autoRotate && stairs != null) {
|
||||||
switch (stairs.getDescendingDirection()) {
|
switch (stairs.getDescendingDirection()) {
|
||||||
case NORTH:
|
case NORTH: {
|
||||||
plocation.setYaw(180);
|
plocation.setYaw(180);
|
||||||
break;
|
break;
|
||||||
case EAST:
|
}
|
||||||
|
case EAST: {
|
||||||
plocation.setYaw(-90);
|
plocation.setYaw(-90);
|
||||||
break;
|
break;
|
||||||
case SOUTH:
|
}
|
||||||
|
case SOUTH: {
|
||||||
plocation.setYaw(0);
|
plocation.setYaw(0);
|
||||||
break;
|
break;
|
||||||
case WEST:
|
}
|
||||||
|
case WEST: {
|
||||||
plocation.setYaw(90);
|
plocation.setYaw(90);
|
||||||
default:
|
break;
|
||||||
;
|
}
|
||||||
|
default: {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
plocation.setYaw(playerYaw);
|
plocation.setYaw(playerYaw);
|
||||||
|
Loading…
Reference in New Issue
Block a user