Fix spawn egg blocking.

Closes WORLDGUARD-3254.
This commit is contained in:
sk89q 2014-12-31 02:30:58 -08:00
parent 41c68664d7
commit 7580583fbf

View File

@ -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