Fixed being able to eat protected cake.

This commit is contained in:
Wizjany 2011-09-16 19:18:08 -04:00
parent 6b9a3aff58
commit 9fea677b60

View File

@ -617,6 +617,7 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
if (!plugin.getGlobalRegionManager().hasBypass(player, world)
&& !set.canBuild(localPlayer)) {
player.sendMessage(ChatColor.DARK_RED + "You're not invited to this tea party!");
event.setUseInteractedBlock(Result.DENY);
event.setCancelled(true);
return;
}