From af5a86c48c83067b05d4489745e4e5335f68c1d2 Mon Sep 17 00:00:00 2001 From: snowleo Date: Thu, 17 Nov 2011 14:23:35 +0100 Subject: Fix water/lava bucket bug with mobs --- .../earth2me/essentials/protect/EssentialsProtectPlayerListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'EssentialsProtect/src/com') diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java index 7543a5244..e39970d06 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectPlayerListener.java @@ -25,10 +25,11 @@ public class EssentialsProtectPlayerListener extends PlayerListener @Override public void onPlayerInteract(final PlayerInteractEvent event) { - if (event.isCancelled()) + // Do not return if cancelled, because the interact event has 2 cancelled states. + /*if (event.isCancelled()) { return; - } + }*/ final User user = ess.getUser(event.getPlayer()); if (event.hasItem() -- cgit v1.2.3