From 554e8d13cf8203c45f1a023bd1e6fee72ad27b2e Mon Sep 17 00:00:00 2001 From: Shevchik Date: Sun, 17 Nov 2013 00:18:27 +0400 Subject: [PATCH] Ignore if anything in hand --- src/com/cnaude/chairs/EventListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/cnaude/chairs/EventListener.java b/src/com/cnaude/chairs/EventListener.java index 5955bb5..c62d8c2 100644 --- a/src/com/cnaude/chairs/EventListener.java +++ b/src/com/cnaude/chairs/EventListener.java @@ -70,9 +70,7 @@ public class EventListener implements Listener { if (isSitting(player)) { return; } - if (event.getPlayer().getItemInHand().getType().isBlock() - && (event.getPlayer().getItemInHand().getTypeId() != 0) - && plugin.ignoreIfBlockInHand) { + if (plugin.ignoreIfBlockInHand && event.getPlayer().getItemInHand().getType() != Material.AIR) { return; } if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {