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