From 5948855da72c23ad564e9c4b94a9dc5bf3aa49f0 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Fri, 2 Dec 2011 18:55:29 -0800 Subject: [PATCH] Added some more 1.0.0 blocks I forgot --- .../worldguard/bukkit/WorldGuardPlayerListener.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java index a9ec630f..7d173d75 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlayerListener.java @@ -527,7 +527,8 @@ private void handleBlockRightClick(PlayerInteractEvent event) { || type == Material.FURNACE || type == Material.BURNING_FURNACE || type == Material.BREWING_STAND - || type == Material.ENCHANTMENT_TABLE) + || type == Material.ENCHANTMENT_TABLE + || type == Material.CAULDRON) && wcfg.removeInfiniteStacks && !plugin.hasPermission(player, "worldguard.override.infinite-stack")) { for (int slot = 0; slot < 40; slot++) { @@ -628,7 +629,9 @@ private void handleBlockRightClick(PlayerInteractEvent event) { || type == Material.BURNING_FURNACE || type == Material.WORKBENCH || type == Material.BREWING_STAND - || type == Material.ENCHANTMENT_TABLE) { + || type == Material.ENCHANTMENT_TABLE + || type == Material.CAULDRON + || type == Material.DRAGON_EGG) { if (!plugin.getGlobalRegionManager().hasBypass(player, world) && !set.allows(DefaultFlag.USE) && !set.canBuild(localPlayer)) { @@ -678,7 +681,8 @@ private void handleBlockRightClick(PlayerInteractEvent event) { && type != Material.FURNACE && type != Material.BURNING_FURNACE && type != Material.BREWING_STAND - && type != Material.ENCHANTMENT_TABLE) { + && type != Material.ENCHANTMENT_TABLE + && type != Material.CAULDRON) { if (!wcfg.getBlacklist().check( new ItemUseBlacklistEvent(plugin.wrapPlayer(player), toVector(block), item.getTypeId()), false, false)) { @@ -713,7 +717,8 @@ private void handleBlockRightClick(PlayerInteractEvent event) { || type == Material.DISPENSER || type == Material.FURNACE || type == Material.BURNING_FURNACE - || type == Material.ENCHANTMENT_TABLE)) { + || type == Material.ENCHANTMENT_TABLE + || type == Material.BREWING_STAND)) { if (wcfg.isChestProtected(block, player)) { player.sendMessage(ChatColor.DARK_RED + "The chest is protected.");