Ignore if anything in hand
This commit is contained in:
parent
3e875af7de
commit
554e8d13cf
@ -70,9 +70,7 @@ public class EventListener implements Listener {
|
|||||||
if (isSitting(player)) {
|
if (isSitting(player)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (event.getPlayer().getItemInHand().getType().isBlock()
|
if (plugin.ignoreIfBlockInHand && event.getPlayer().getItemInHand().getType() != Material.AIR) {
|
||||||
&& (event.getPlayer().getItemInHand().getTypeId() != 0)
|
|
||||||
&& plugin.ignoreIfBlockInHand) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
if (event.getAction() == Action.RIGHT_CLICK_BLOCK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user