Fixed placing stuff in flower pots. (derp)

This commit is contained in:
Wizjany 2013-01-13 13:44:54 -05:00
parent 17aa2a4153
commit 035ccee2a6

View File

@ -733,10 +733,13 @@ private void handleBlockRightClick(PlayerInteractEvent event) {
|| item.getTypeId() == BlockID.CACTUS || item.getTypeId() == BlockID.CACTUS
|| item.getTypeId() == BlockID.LONG_GRASS || item.getTypeId() == BlockID.LONG_GRASS
|| item.getTypeId() == BlockID.DEAD_BUSH) { || item.getTypeId() == BlockID.DEAD_BUSH) {
event.setUseItemInHand(Result.DENY); if (!plugin.getGlobalRegionManager().hasBypass(player, world)
event.setCancelled(true); && !set.canBuild(localPlayer)) {
player.sendMessage(ChatColor.DARK_RED + "You're not allowed to plant that here."); event.setUseItemInHand(Result.DENY);
return; event.setCancelled(true);
player.sendMessage(ChatColor.DARK_RED + "You're not allowed to plant that here.");
return;
}
} }
} }