From 7580583fbf034420a521c5580dcbc53e1b677db4 Mon Sep 17 00:00:00 2001 From: sk89q Date: Wed, 31 Dec 2014 02:30:58 -0800 Subject: [PATCH] Fix spawn egg blocking. Closes WORLDGUARD-3254. --- .../worldguard/bukkit/listener/EventAbstractionListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java b/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java index 2544fa93..71dc37bf 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/listener/EventAbstractionListener.java @@ -389,6 +389,7 @@ public void onPlayerInteract(PlayerInteractEvent event) { case RIGHT_CLICK_AIR: if (item != null && !item.getType().isBlock() && Events.fireAndTestCancel(new UseItemEvent(event, cause, player.getWorld(), item))) { event.setUseItemInHand(Result.DENY); + event.setCancelled(true); // The line above does not appear to work with spawn eggs } // Check for items that the administrator has configured to