We only need the block in here.

This commit is contained in:
GJ 2013-02-22 14:50:41 -05:00
parent 1d316f9420
commit 6c6ab4c96e

View File

@ -326,17 +326,12 @@ public class PlayerListener implements Listener {
return;
}
Block block = event.getClickedBlock();
BlockState blockState = null;
if (block != null) {
blockState = block.getState();
}
ItemStack heldItem = player.getItemInHand();
switch (event.getAction()) {
case RIGHT_CLICK_BLOCK:
Block block = event.getClickedBlock();
BlockState blockState = block.getState();
/* ACTIVATION & ITEM CHECKS */
if (BlockChecks.canActivateAbilities(blockState)) {