From 132fcb8c74171198c77fb503b9b0a9d7cf118479 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 14 Feb 2013 09:26:05 -0500 Subject: [PATCH] We need to get our priorities straight. --- .../gmail/nossr50/listeners/BlockListener.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index fdc2e95f9..2505b8700 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -248,12 +248,12 @@ public class BlockListener implements Listener { } /** - * Handle BlockDamage events where the event is modified. + * Monitor BlockDamage events. * - * @param event The event to modify + * @param event The event to watch */ - @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) - public void onBlockDamageHigher(BlockDamageEvent event) { + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) + public void onBlockDamage(BlockDamageEvent event) { if (event instanceof FakeBlockDamageEvent) { return; } @@ -303,12 +303,12 @@ public class BlockListener implements Listener { } /** - * Monitor BlockDamage events. + * Handle BlockDamage events where the event is modified. * - * @param event The event to watch + * @param event The event to modify */ - @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) - public void onBlockDamage(BlockDamageEvent event) { + @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) + public void onBlockDamageHigher(BlockDamageEvent event) { if (event instanceof FakeBlockDamageEvent) { return; }