From c8ff58bb6c92e10eb750ef65677adfc2fded1db7 Mon Sep 17 00:00:00 2001 From: NuclearW Date: Sun, 5 Feb 2012 01:46:39 -0500 Subject: [PATCH] Monitor and ignoreCancelledEvents onBlockPlace --- .../java/com/gmail/nossr50/listeners/mcBlockListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java index b3edb81d7..a9b657e80 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcBlockListener.java @@ -56,9 +56,11 @@ public class mcBlockListener implements Listener this.plugin = plugin; } - @EventHandler + @EventHandler(priority = EventPriority.MONITOR) public void onBlockPlace(BlockPlaceEvent event) { + if(event.isCancelled()) return; + //Setup some basic vars Block block; Player player = event.getPlayer();