From 46f11570305b51550a20e96d84c4709553dcd108 Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 25 Jan 2013 15:32:11 -0500 Subject: [PATCH] Clean up more of block listener. --- .../java/com/gmail/nossr50/listeners/BlockListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index 76a6ebd42..434826744 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -60,8 +60,7 @@ public class BlockListener implements Listener { public void onBlockPistonExtend(BlockPistonExtendEvent event) { List blocks = event.getBlocks(); BlockFace direction = event.getDirection(); - // Block that would be air after piston is finished - Block futureEmptyBlock = event.getBlock().getRelative(direction); + Block futureEmptyBlock = event.getBlock().getRelative(direction); // Block that would be air after piston is finished for (Block b : blocks) { if (mcMMO.placeStore.isTrue(b)) { @@ -83,7 +82,7 @@ public class BlockListener implements Listener { /** * Monitor BlockPistonRetract events. * - * @param event The event to monitor + * @param event The event to watch */ @EventHandler(priority = EventPriority.MONITOR) public void onBlockPistonRetract(BlockPistonRetractEvent event) { @@ -249,6 +248,7 @@ public class BlockListener implements Listener { * * @param event The event to modify */ + @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onBlockDamageHigher(BlockDamageEvent event) { if (event instanceof FakeBlockDamageEvent) { return; @@ -303,7 +303,7 @@ public class BlockListener implements Listener { * * @param event The event to watch */ - @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onBlockDamage(BlockDamageEvent event) { if (event instanceof FakeBlockDamageEvent) { return;