From 82dd666ef76cea94059740a891c37595d7cc5984 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Fri, 7 Mar 2014 20:34:53 +0400 Subject: [PATCH] Format some code --- .../chairs/listeners/TrySitEventListener.java | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/com/cnaude/chairs/listeners/TrySitEventListener.java b/src/com/cnaude/chairs/listeners/TrySitEventListener.java index 331ead3..9eb6025 100644 --- a/src/com/cnaude/chairs/listeners/TrySitEventListener.java +++ b/src/com/cnaude/chairs/listeners/TrySitEventListener.java @@ -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);