1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-04-02 01:36:26 +02:00

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

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