Ignore if anything in hand

This commit is contained in:
Shevchik 2013-11-17 00:18:27 +04:00
parent 3e875af7de
commit 554e8d13cf

View File

@ -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) {