Allow cow milking in no-build areas

This commit is contained in:
wizjany 2013-03-22 15:35:30 -04:00
parent fa80f5f67f
commit 0cf87ae561

View File

@ -1242,7 +1242,8 @@ public void onPlayerBucketFill(PlayerBucketFillEvent event) {
WorldConfiguration wcfg = cfg.get(world);
if (!plugin.getGlobalRegionManager().canBuild(
player, event.getBlockClicked().getRelative(event.getBlockFace()))) {
player, event.getBlockClicked().getRelative(event.getBlockFace()))
&& !(event.getBucket().getId() == ItemID.MILK_BUCKET)) {
player.sendMessage(ChatColor.DARK_RED + "You don't have permission for this area.");
event.setCancelled(true);
return;