From 5c34b00302ab21a3f92e0d8b54899b1597856155 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Fri, 7 Mar 2014 20:41:00 +0400 Subject: [PATCH] Format some more code --- src/com/cnaude/chairs/listeners/TrySitEventListener.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/com/cnaude/chairs/listeners/TrySitEventListener.java b/src/com/cnaude/chairs/listeners/TrySitEventListener.java index 9eb6025..e09b463 100644 --- a/src/com/cnaude/chairs/listeners/TrySitEventListener.java +++ b/src/com/cnaude/chairs/listeners/TrySitEventListener.java @@ -170,8 +170,7 @@ public class TrySitEventListener implements Listener { return false; } - private Location getSitLocation(Block block, Float playerYaw) - { + private Location getSitLocation(Block block, Float playerYaw) { double sh = 0.7; for (ChairBlock cb : plugin.allowedBlocks) { @@ -267,10 +266,8 @@ public class TrySitEventListener implements Listener { } private boolean checkDirection(Block block1, Block block2) { - if (block1.getState().getData() instanceof Stairs - && block2.getState().getData() instanceof Stairs) { - if (((Stairs) block1.getState().getData()).getDescendingDirection() - .equals(((Stairs) block2.getState().getData()).getDescendingDirection())) { + if (block1.getState().getData() instanceof Stairs && block2.getState().getData() instanceof Stairs) { + if (((Stairs) block1.getState().getData()).getDescendingDirection().equals(((Stairs) block2.getState().getData()).getDescendingDirection())) { return true; } }